The Model in Zend’s MVC
I’ve begun building an application using the Zend Framework. I’ve incorporated a basic MVC structure, mapping some classes to the database tables. There’s a log-in form that I’ve created that authenticates via the database, and it works. I have some basic views created. Mostly it’s going well.
But the trouble is this: I don’t really know what to do with the model end of the framework.
Rob Allen’s Getting Started with the Zend Framework tutorial was great for getting started, but now I’m looking for good tutorials on more complex uses of the model and not finding any.
If I’ve already extended the Zend_Db_Table class for the tables in my database, and I’m sure I’ll need to do more with the Zend_Db_Table_Row, Zend_Db_Table_Rowset, and Zend_Db_Table Relationships classes. But what exactly? Where are good tutorials for creating a model layer for more complex data interactions?
The documentation is great – and I can learn how to use these classes. Perhaps my trouble is merely misunderstanding the purpose of the model and the controller.
I’m not even sure what I’m writing for, but that I don’t want to make a “mistake,” by which I mean I want to implement the framework in as elegant and simple a way as possible.
No Responses
Add your response
Respond to “The Model in Zend’s MVC”