The DAO pattern, as its name implies, encapsulates logic for accessing data in an object or set of related objects.
顾名思义,DAO模式封装了访问一个对象或相关对象集中的数据的逻辑。
This is a framework of types and properties that provides a set of rules to which the data must conform and a means of accessing a data element by describing its path from another data element.
这是类型和属性的框架,提供了一组数据必须满足的规则,并可通过从其他数据元素描述其路径来访问数据元素。
So in the controller, we are going to be accessing the Model and getting it all set up so all the view has to do is spit out some data.
因此,在控制器中,我们会访问模型,并获得所有创建完毕的模型,这样,所有视图所要做的就是输出某些数据。
应用推荐