使用已经了解的CakePHP知识,创建一个基本的模型、视图和控制器,用于获得word表内容并在执行索引操作时显示。
Using what we already know about CakePHP, create a basic Model, View, and Controller that will get the content of the words table and display them at the index action.
请求来自客户端并由控制器进行服务,控制器选择一个相应的视图向用户进行显示,而且如果需要,执行模型上的一个相关的操作。
Requests come in from the client and are serviced by the controller, which selects an appropriate view to show the user and, if required, an appropriate operation to perform on the model.
应用推荐