This line makes the is_iphone_request? method a helper method that is callable from any view.
这行代码将使 is_iphone_request?方法成为助手方法,您可以从任何一个视图中调用它。
We use all these helper classes together with our data model to create our View class.
我们通过将所有这些helper类与数据模型一起使用,从而创建自己的view类。
When your action is called in the execute method, you must call a couple helper functions to update the specific view instance (if that is what your action is intended to do).
在execute方法中调用操作时,必须调用一对helper函数来更新特定的视图实例(如果这是操作的目的)。
And, because every function in the Student controller touches the template view, you need to load the URL Helper as part of the Student constructor (see Listing 14).
并且,由于Student控制器内的每个函数都会接触到模板视图,所以需要加载urlHelper,作为Student构造函数的一部分(参见清单14)。
Simply tell the helper that it can display XML and create an XML view script for it to use instead of the normal context view script.
只需告诉helper它可以显示XML并且创建xml视图脚本,而不是普通的上下文视图脚本。
To call the action method and render the child view from the parent view, you can use either the action helper method or RenderAction helper method as shown in the following example.
为了调用动作方法在父视图中呈现子视图,你可以像下面的示例一样使用Action辅助方法或RenderAction辅助方法。
The helper file is empty: it's a place where you can put Ruby methods that you write and that you want to call from your view templates.
Helper文件里面什么也没有:你可以在里面放入自己写的Ruby方法,并可以从视图模板中调用这些方法。
The view is handled by the main Web page (dxl.html); it also has helper functions and global variables for maintaining information. The primary view components are.
此视图由主页(dxl. html)处理;它还具有helper函数以及用于维护信息的全局变量。
Notice that this function loads the CodeIgniter Form Helper to be used by the student_add.php view.
请注意,此函数加载CodeIgniter FormHelper以供student_add . php视图所用。
On the Design TAB, drag the search object from the Page Data view onto the Typeahead helper button next to the input field, as shown in Figure 9.
在Design标签,从PageData视图将搜索对象拖至紧邻输入栏的Typeahead帮助按钮,如图9所示。
A helper function in app/helpers/pages_helper.rb does the heavy lifting, keeping the view minimal (see Listing 12).
由app/helpers/pages_helper.rb 中的 helper函数来完成这一工作,从而保持视图的最小化(请参阅清单 12)。
This view displays a list of the roles defined by the application, along with the users who are members, and I use the GetUserName helper method to get the name for each user.
该视图显示了一个由应用程序定义的角色列表,且带有成员用户,我用GetUserName辅助器方法获取了每个用户的用户名。
This view displays a list of the roles defined by the application, along with the users who are members, and I use the GetUserName helper method to get the name for each user.
该视图显示了一个由应用程序定义的角色列表,且带有成员用户,我用GetUserName辅助器方法获取了每个用户的用户名。
应用推荐