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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-21-2008, 09:32 AM
Junior Member
 
Join Date: Jul 2008
Posts: 1
Default Zend_Form - model, view or controller?

Hi,
in my opinion, form is a view, but in most of examples of Zend_Form it is a model or a controller. Why?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-21-2008, 09:41 AM
dele454's Avatar
Member
 
Join Date: Jun 2008
Posts: 40
Default

Those examples you have seen are intended to foster reusability hence Zend_Form is moved into the Model. Besides that the concept of having Thin controller, Fat Model is also applied.

An Example Zend Framework Blog Application - Part 2: The MVC Application Architecture - Maugrim The Reaper's Blog

read the section on Controller vs Models for a better understanding.

Cheers
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 06:19 AM.