12.4 小结 — 精通 MVC 3 框架

Summary
小结

Controllers are one of the key building blocks in the MVC design pattern. In this chapter, you have seen how to create “raw” controllers by implementing the IController interface and more convenient controllers by deriving from the Controller class. You saw the role that actions methods play in MVC Framework controllers and how they ease unit testing. 
控制器是MVC设计模式中的关键构建块之一。本章中,你已经看到了通过实现IController接口如何生成“原始的”控制器,以及通过从Controller类派生的办法生成更方便的控制器。你看到了动作方法在MVC框架控制器中所起的作用,以及它们如何易于单元测试。

In the next chapter, we will go deeper into the controller infrastructure, in order to customize how controllers are created and behave, so that you can tailor the way that your application behaves. 
下一章,我们将更深入地进入控制的基础结构,目的是定制控制器如何生成和定制其行为,以使你能够制作应用程序的行为方式。

posted on 2012-06-13 20:58  lucky.net  阅读(128)  评论(0编辑  收藏  举报

导航

Copyright luckynet 2013