然后将为单词创建一个标准模型、控制器和视图查看数据库中的单词列表。
Then we make a standard model, controller, and view for words to view the list of words from the database.
由于会传递回一个过滤了的列表,所以需要在此控制器的一个变量内处理这一点。
Because you are potentially passing back a filtered list, you need to handle this in a variable in the controller instead.
以上模板需要一张用户列表,因此让我们快速查看为页面创建模型的控制器(参见清单4)。
The template above needs a list of users, so let's take a quick look at the controller that creates the model for the page (see Listing 4).
应用推荐