Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2008, 03:40 PM
Junior Member
 
Join Date: May 2008
Posts: 2
Default Newbie question - MVC - where can I learn more about the "model"?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-13-2008, 04:31 PM
Junior Member
 
Join Date: Mar 2008
Posts: 26
Default

Quote:
The Model part, in a PHP app, would usually be a class (or multiple classes). Fairly often, the class is a representation of a table you store in the database — member variables are the data columns, and member methods are operations that can be done. As an example, you might have a User class, having variables such as username, password, email address, and other things. Some of its methods might be a new user creation function, a login function, an authentication function, and a logout function.

(...) The Model, in essence, tells you what methods are available — what can you do to the data in the database.
from: agum MVC architecture in PHP development

In ZF component "responsible" for Model is Zend_Db_Table.
Read more on manual :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:20 AM.