Rishi You're not the first nor the last to be confused by this, but it's actually very simple once you realise it. If you remove views and controller, what's left? Business logic, data and anything specific to your application. Let say you need to represent a user in your system, or a client, those are your models. Often they are persistent in a database, some people even use Zend_Db_Table as a model, but it can be anything, there are no rules of what model is, it's up to you and it will be determined by what you're building.
Karol Rishi Daryanani wrote: > > Hi, > I'm a total newbie, but I am reading up on the Zend > framework and trying out some tutorials, very useful.. > However everything I've read/tried involves the > "application/views" and "application/controllers" > directories to create views and controllers. I have > not yet come across any mention of the "models" > subdirectory. > > Where can I learn more about this and what it's used > for? > > Am I right in assuming that I can build my own > functionality (e.g. user login form, CMS) entirely > with the concept of a controller and view? (but not a > model) > > Many thanks > > > > > -- View this message in context: http://www.nabble.com/MVC---where-can-I-learn-more-about-the-%22model%22--tp17211735p17215213.html Sent from the Zend Framework mailing list archive at Nabble.com.
