Now, add more code to the controller.
现在,您可以向控制器中添加更多的代码。
First, look at the controller in Listing 1.
首先,看清单1中的控制器。
This is the controller that backs this page.
返回此页的是控制器。
Let's go back and finish the controller.
让我们回过头来完成控制器。
Respond to signals sent from the controller.
对控制器发出的信号做出响应。
You don't mess around with the controller.
使用控制器您就不会产生混乱。
We just need to add one line to the controller.
我们只需要给控制器增加一行。
You'll see the controller side of this shortly.
稍后您将看到控制器端的情况。
To make this form work, I start with the controller.
为了让此表单正常工作,我从控制器开始处理。
Next, you begin work on the controller functionality.
接下来,开始使用控制器功能。
Single Unified Application (Without the Controller).
一个统一应用程序(无控制器)。
Send all actions from the view to the controller.
将视图中的所有操作发送给控制器。
The central piece of the widget is the controller.
小组件的核心内容是控制器。
The controller is the brains behind our application.
控制器是我们应用程序的大脑。
Both the view and the controller depend on the model.
视图和控制器对象都依赖于模型。
The Action is, however, still part of the controller.
然而,Action仍然是控制器层的一部分。
The view does not have direct contact with the controller.
视图并不直接与控制器交互。
The controller and view are fully automated based on the model.
控制器和视图是完全自动基于模型的。
The controller is a bridge between the model and its views.
控制器(controller)是模型及其视图之间的桥梁。
The goal of the controller is to prepare the model for the view.
控制器的目的是为视图准备模型对象。
Creating the controller method to make the remote JSON request.
创建用于发出远程JSON请求的控制器方法。
The most common mistake I see is business process in the controller.
我所见到的一个最普遍的错误就是将业务处理放置在了控制器当中。
I completely isolate the code under test to the controller layer.
要测试的代码被完全限制在控制层。
The name ShowRestaurants.html, shown above, matches the controller.
上面所示的ShowRestaurants . html命名匹配控制器。
Remember the job of the controller is to prepare the model for the view..
记住,控制器的职责是为视图准备模型对象。
Next, the application instantiates the controller object as a global.
下一步,应用程序将控制器对象作为全局变量进行实例化。
The controller keeps a reference to the primary instance of the model.
控制器保留对模型主实例的引用。
You will enter all the logic to manage the event inside the controller.
您将输入管理控制器中事件的所有逻辑代码。
To keep things simple, the date range has been fixed in the controller.
为了简单起见,在本文中,这个时间范围是固定的。
Next, we'll bridge the model and view with the controller, or EditPart.
接下来,我们将用控制器或EditPart在模型与视图之间架起桥梁。
应用推荐