Note: the final release brought back the "Add Controller" context menu.
注:最终版本带回来的“添加控制器”上下文菜单。
Add Controller website to trusted zone, and check zone security Settings.
将Controller网站添加到可信区域,检查安全区域设置。
Note: VS 2013 Preview and RC did not include the "Add Controller" context menu.
注意:VS 2013预览和RC中不包括“添加控制器”上下文菜单。
This will cause an “Add Controller” dialog to appear that allows you to name the Controller to create, as well as optionally indicate whether you wish to automatically “scaffold” common CRUD methods
这会调出“添加控制器”对话框,允许你给要创建的控制器取名,以及表示你是否想自动地生成(scaffold)常见的CRUD方法
To accomplish this, you add a View and a View Controller for each screen you want to have.
要做到这点,你需要为每个界面都添加一个视图和视图控制器。
Once you add a new controller class or method, it becomes automatically available.
在添加新控制器类或方法之后,它们就自动变为可用的了。
This is the main entry point for your application and the place to add new controller methods.
这是应用程序的主入口点,也是添加新控制器方法的地方。
Now that your two views are in place, you need to go back to your controller and add two more functions.
现在已经有了两个视图,因而需要重新回到控制器,为其添加两个函数。
Now, add more code to the controller.
现在,您可以向控制器中添加更多的代码。
After you've made these changes, you need to add machine accounts (so the workstations are known to the domain controller, and trusted) and user accounts.
进行了这些更改后,需要添加计算机帐户(以便域控制器知道并信任工作站)和用户帐户。
You can change, remove, or add target devices from the Targets TAB in the Controller Editor.
您可以从ControllerEditor中的“Targets”选项卡更改、删除或添加目标设备。
Add a closure to the Entry controller to handle the Atom request.
在Entry控制器中添加一个闭包,以处理Atom请求。
For example, to enable product editing support we can implement the HTTP-GET version of our "edit" action method on our Products controller like below and then invoke the "Add View" command.
例如,要支持产品编辑,我们可以象下面这样在Products控制器上实现“Edit”action方法的HTTP - GET版本,然后调用“添加视图”命令。
Now that the basic Model-View-Controller (MVC) framework is in place, I'm ready to mix in some external technologies. Specifically, I'm going to add a map.
目前基本的模型-视图-控制器(Model - View - Controller,mvc)框架已经准备就绪,我将加入一些外部技术,具体来讲,我将加入地图功能。
Next, add a function to the Student controller called edit , which is where the edit option is pointing.
接下来,向Student控制器添加一个函数,称为edit,这也是edit选项所指向的位置。
Next, add a delete function to the Student controller, which is where the delete option is pointing.
接下来,向Student控制器添加一个delete函数,这是delete选项所指向的位置。
Then you need to add a function to the Student controller (Listing 6) to be able see the HTML form.
然后,需要向Student控制器(清单6)添加一个函数,以便能够看到这个HTML表单。
Next, to receive the form post, add the function update() to the Student controller; the code is shown in Listing 19.
接下来,为了接收这个表单发布,向Student控制器添加函数update();代码如清单19 所示。
The first use of the controller command will also add additional dependencies, such as Spring MVC and Tiles to your project.
第一次使用控制器命令还会添加额外的依赖项到您的项目中,比如springMVC和Tiles。
Clicking the "add" button will cause the controller class to be created and added to the project.
点击“添加”按钮会生成一个控制器类,并将它加到项目中去。
The next task is to go back to the XCode IDE and add some member variables, properties, and methods to the view controller class definition as in Listing 5.
下一个任务是回到XCodeIDE,向视图控制器类定义添加一些成员变量、属性和方法,如清单5所示。
Scott introduces action filters, which are attributes that add pre and post processing logic to controller actions.
Soctt介绍了活动过滤器(action filters),它们都以特性(attributes)的形式为控制器活动添加预处理和后处理逻辑。
You saw how to create friendly URIs by adjusting controller code, add mappings to UrlMappings.groovy, and create a custom codec.
您了解了如何通过调整控制器代码创建更为友好的URI、向UrlMappings . groovy添加映射以及创建一个定制codec。
To do so, add a create function to the Student controller, shown in Listing 7.
为此,向Student控制器添加一个create函数,如清单7所示。
To do that, you first need to have an event handling method in the ManageCustomer controller for an "add" menuitem onClick event.
要完成这些,首先要在ManageCustomer控制器中有“add”菜单项的onClick事件的事件处理方法。
You need to add two lines of code in the init method of the controller servlets.GoogleSearchServlet.
您需要在控制器servlets . GoogleSearchServlet的init方法中添加两行代码。
TIP: in case you need it later, it is recommended you add both the NetBIOS and FQDN names, plus localhost. In other words, if you have three Controller application servers, add the following.
提示:建议添加netbios和fqdn名以及本地主机,以防今后需要。
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方法。
Add feed button activation: the controller needs to pop up the Add feed dialog box.
添加提要按钮激活:控制器需要弹出addFeed对话框。
On the controller side, the code for the add() method changes radically, as shown in Listing 5.
控制器端的add()方法彻底变了,如 清单 5 所示。
应用推荐