Hi Keith,

Very interesting questions. As I really think the new form framework is 
the only one (that I know) that fully embraces the MVC pattern, I've 
just wrote an answer on my blog that try to explain the philosophy 
behind the design:

http://www.aide-de-camp.org/article/3/en/symfony-1-1-form-framework-and-the-mvc-pattern

Fabien

--
Fabien Potencier
Sensio CEO - symfony lead developer
http://www.sensiolabs.com/
http://www.symfony-project.com/
Sensio Labs
Tél: +33 1 40 99 80 80


Keith wrote:
> I am a little confused about a few things in 1.1 with form handling
> still.
> 
> * Why is validation (something that in most MVC frameworks is handled
> in the model) now handled in the controller?
> 
> Doesn't this move the validation farther away from what it actually is
> validating?
> 
> * Why is form rendering also now in the controller? The view just
> contains
> 
> echo $form
> 
> where the form should render.
> 
> Isn't the form part of the view? It seems to me this new system mixes
> both logic and presentation in how forms are rendered and validated.
> 
> I feel like I'm missing something important in trying to understand
> this because these changes seem very inconsistent with what the rest
> of the MVC world is doing. At a time when other frameworks are
> advocating skinny controllers and fat models, Symfony is taking things
> away from the Model that should logically be handled there like
> validation.
> 
> Similarly, when other frameworks are moving towards having their
> generators build code it's largely CSS driven, whereas the code here
> is (by default) tables. This again seems like a step back given the
> push for standards driven web design.
> 
> I can certainly respect the power of the new methods that are
> available, but I wonder why they are preferable given the stated roles
> of the Model, View, & Controller and what direct benefits this gives
> to designers who are separated from application development teams who
> must now learn additional Symfony methods instead of being freed to
> just be designers.
> 
> I'm not trying to tear down what has obviously had a lot of thought
> given the dramatic nature of the change. I'm just trying to understand
> how it remains consistent with MVC principles.
> > 
> 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to