Was it running older controller code?
是否运行了老版本的固件代码?
Rails helpers are functions that help to simplify model, view, or controller code.
Rails帮助器是帮助简化模型、视图、控制器代码的函数。
You will need some controller code to glue everything together and make this RIA interactive.
您需要使用一些控制器代码将所有内容组合起来,并使这个RIA具有交互性。
To generate more-descriptive URIs, you'll customize controller code to support the personalized URIs.
要获得描述性更好的URI,需要定制控制器代码以支持个性化的 URI。
It should be ignorant of any view or controller code that exists as a means to interact with the model.
视图或控制器用于作为与模型进行交互的手段,而模型并不知道它们的存在。
You might recall that these are the same three variables that were bound to values within the controller code.
您可能还记得,它们就是在控制器代码中被绑定到值的3个变量。
The event bubbling technique provides the ability to disconnect the view structure of the widget from the controller code.
事件气泡技巧可用于断开小组件的视图结构与控制器代码之间的连接。
The third generates a controller called ajax and views for two actions: show and time. Listing 1 shows the controller code.
第三行代码生成一个叫做ajax的控制器,并查看两个动作:show和time。
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。
As you can see in this brief tutorial, putting your validation into your model can clean up your controller code in great ways.
如你在这个简单教程中所看到的,把验证放到模型中能够很好简化你的控制器。
The index.zul file contains only the view part of the application, while controller code is written separately in the composer class ManageCustomer.
zul文件仅包含应用程序视图部分,而控制器代码单独写进composer类ManageCustomer 中。
Rails also includes dynamic scaffolding, which essentially provides the same code support without the need for the pre-generated controller code.
Rails还包括了dynamicscaffold,它实际上提供了相同的代码支持,而不需要提前生成控件代码。
The idea being that if you have code that is not threadsafe, this mutex will prevent multiple threads from executing your controller code at the same time.
这个想法是来自于如果你的代码是非线程安全的,这个互斥防止多线程在同时执行你的控制器代码。
When a user clicks on a closed node, the onClick event of the target node is bubbled up by the browser to the main onClick handler of the widget's controller code.
当用户单击某个关闭的节点时,浏览器会将目标节点的onClick事件(通过气泡)传递给小组件控制器代码的主onclick处理程序。
The controller code is also pretty thoroughly separated from the model code, and could be swapped out for different control devices without needing to change the model.
控制器代码也是相当彻底分开的模型代码,并可以用不同的控制设备,而不需要改变模型。
To create the new view and controller, type the code in Listing 5.
创建新的视图和控制器,请输入清单5所示的代码。
The controller can specify a code block for each type the controller expects.
控制器可以为控制器期望的每个类型指定一个代码块。
The idea behind the controller is to provide code that can use XQJ to query and transform the aforementioned XML document.
控制器的目的就是提供能够使用XQJ进行查询的代码,并转换刚才提到的XML文档的格式。
This code was leveraged from the activity controller with only a few modifications, including echoing the final table, not returning it.
这段代码在活动控制器中使用,并且只进行了少量修改,包括回传最终表(而不是返回表)。
The top half of this file will contain the primary code for your scripts controller.
此文件的上半部分将包含脚本控制器的主要代码。
If you need to change the path that executes a given controller, you need to reconfigure your code structure.
如果我们需要修改执行给定控制器的路径,就需要对代码结构重新进行配置。
The code in Listing 3 is the basic declaration of your controller.
清单3中的代码是您的控制器的基本声明。
Programmers have simplified their code structure and eased maintenance tasks with Model-View-Controller for decades.
数十年来,程序员们使用模型-视图-控制器简化了代码结构,并使得维护任务更加容易。
That code belongs in the controller.
那些代码属于控制器。
Now, add more code to the controller.
现在,您可以向控制器中添加更多的代码。
Listing 4 shows the source code for this controller.
清单4展示了该控制器的源代码。
Modify the controller to validate the ZIP code (5 numeric digits).
修改控制器以验证邮政区码(5位数字)。
As you can see from the link definition in Listing 5, I created a new BrowsersController controller class to manage this code.
正如您可以从清单5中的链接定义看到的那样,我创建了一个新BrowsersController控制器类来管理这段代码。
With one line of code, the catalog controller can now use the requester-side caching capabilities for caching the catalogs returned from the legacy catalog application.
现在只需使用一行代码,Catalog控制器就能够使用请求端缓存功能来缓存从遗留Catalog应用程序返回的Catalog了。
Model View Controller for code generation.
用于代码生成的模型-视图-控制器模式。
应用推荐