This is a commonly used controller that, as the name suggests, has an array that holds the model data needed for the view. All you need to do is provide the data for the controller and handle sorting.
这是一个常用的控制器,顾名思义,它有一个存储视图所需的模型数据的数组。
For example, to cache the products views, you would have to include cache in the helpers array for the products controller.
例如,如果需要缓存产品视图,则必须在产品控制器的helpers数组中包含Cache。
The most important thing about it is that it is an array controller, which means that it extends SC.ArrayController.
最重要的是它是一个数组控制器,这意味着它扩展了 SC.ArrayController。
应用推荐