Now, turn your attention to the page controller.
现在,让我们来关注页面控制器。
Do I really need to add an authentication check to each page controller?
我真的需要添加一个认证检查每个页面控制器?
It USES a page Controller pattern that adds functionality to individual pages.
它使用页面控制器模式向单个页面添加功能。
When you want to go to another page, you push your view Controller (and associated view) onto the view Controller stack.
在你导向另外一个页面的时候,就把视图控制器放到视图控制器堆栈中。
Instead of creating a controller or action class, you create a page, place components on it, and define how each component reacts to user input.
与构建控制器或动作类相反,您创建的是一个页面,在这个页面上放置组件,然后定义每个组件如何响应用户输入。
The controller gets all the data ready for display on the accounts page.
该控制器将获取准备显示在帐户页面中的所有数据。
For instance, say you had constructed a controller to create a page, which lists in detail all the breakfasts you had consumed for the past three weeks.
例如,假设您已经创建了一个用于创建页面的控制器,它列出您在过去三周内吃过的全部早餐的详细信息。
Listing 9 shows the controller for the restaurant details page.
清单9显示了餐馆明细页面的控制器。
The template above needs a list of users, so let's take a quick look at the controller that creates the model for the page (see Listing 4).
以上模板需要一张用户列表,因此让我们快速查看为页面创建模型的控制器(参见清单4)。
I prefer to use a controller, because I can use it to fire the model logic, then do some validation processing, and then route the user to an error-handling or result page as appropriate.
我更喜欢使用控制器,因为我可以使用它来触发模型逻辑,然后进行某种验证处理,接着将用户路由到一个相应的错误处理或结果页。
This is the controller that backs this page.
返回此页的是控制器。
The code passes the string value of what the control is referenced as in this local Web page so that the controller object can reference that when it renders the view objects.
代码传递在此局部网页中引用的控件的字符串值,以便在其显示视图对象时控制器对象可以引用该值。
On the host page, select the host for the Agent Controller.
在Host页面,选择代理控制器的主机。
When the JSP page is loaded, it calls the Action class, which ACTS as a Controller in the MVC design pattern.
JS p页被加载时,它就调用action类,这个类在MVC设计模式中充当控制器角色。
Listing 9. The item page displays the model instanced in the controller.
清单9.item页面显示在控制器中实例化的模型。
We need to subscribe to that event so that we can manipulate the Stack Controller when the user chooses to go back to a previous page in the breadcrumb trail.
我们需要订阅该事件以便在用户选择返回到breadcrumbtrail内之前的页面时能立即处理此StackController。
In the Controller COM + roles and users, click in the area, and then click the New (' white page ') button from the main tool bar.
在ControllerCOM +rolesandusers中,单击该区域,然后单击主工具栏上的New(“空白页”)按钮。
For the product display page, a product controller is created that retrieves a product from the database and passes it to the product Kid template for rendering.
对于产品显示页面来说,我们要创建一个product控制器,它会从数据库中检索出一个产品,并将其传递给productKid模板进行呈现。
So, when it comes time to actually authenticate a user, this the web page (or controller, if you're doing MVC) would call.
这样,实际验证一个用户时,We b页(如果你使用MVC,也可叫做控制器)将调用。
In traditional Web application development, page templating systems are used to cleanly separate view generation from controller logic and model data.
在传统的Web应用程序开发中,采用页面模板系统把视图生成与控制器逻辑和模型数据干净地分离。
When a user requests a page from a Rails Web application, the URL is sent through a routing system, which sends the request to a controller.
用户从RailsWeb应用程序请求页面时,URL通过路由系统发送,后者将请求发送给控制器。
The ECM step completion widget is the controller of the widgets on the step Processor page.
ECM步骤完成小部件是StepProcessor页面上的小部件的控制器。
This page USES the form_remote_tag to submit the contents of the simple form to the add method in the controller.
这个页面使用form_remote_tag把简单表单的内容提交到控制器中的add方法。
The Dynamic UI Controller performs a lookup of the page definition, uses its layout model as the blueprint, and creates a new dynamic page out of it.
DynamicUIController执行页面定义的查找,将其布局模型用作蓝图,并从中创建新的动态页面。
Both page and fragment caching occur at the controller level. You need to tell rails.
页面和分段缓存二者均在控制器级别发生。
The controller examines the request and extracts the view ID, which is determined by the name of the JSP page.
控制器会对请求进行考查,并提取出视图的ID,这是由jsp页面的名字来确定的。
The class will serve as the controller for the "home page" of your application.
这个类充当应用程序“主页”的控制器。
How do I send information from controller method to HTML page?
我如何从控制器方法将信息发送到HTML页面?
In the controller, the index method merely reflects the show action with no page identifier, thus rendering the home page.
在该控制器中,index方法仅仅反映没有页面标示符的show操作,从而呈现主页面。
I could have also chosen to specify the timeout within the RHTML page along with the cache method, but we prefer the controller-based method.
我也可以选择在rhtml页面中指定超时和缓存方法,但我更愿意使用基于控制器的方法。
应用推荐