Properly calling the database from Model in an MVC application?

前端 未结 4 2065
有刺的猬
有刺的猬 2020-12-01 04:07

I\'m building a tiny MVC framework for learning/experimenting and small project purposes. I needed to find out the basics of the internals of the Model since a full MVC fram

4条回答
  •  误落风尘
    2020-12-01 04:31

    You could have a look at the data mapper model approach referred to by the Zend framework model manual

    Then you have a model containing properties, and have a mapper which does the actual database interaction to populate the model.

提交回复
热议问题