Re: QuickForm and MVc
| From: | Bertrand Mansion | Date: | Mon, 12 Jul 2004 18:31:45 +0000 |
| Subject: | Re: QuickForm and MVc | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13666@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
>It was my understanding that each of the three components can still
>have code and logic as long as it pertains to its function. For
>instance, it's fine for the view to use code to choose the part of the
>navigation to highlight based on the current page. If you're putting
>that code in the model or controller, you're putting view code not in
>the view.
>
>Of course you can put M and C conponents in Smarty if you want, but
>that's your choice as a developer. You can never completely force
>seperation of the three components inless you as a coder force
>yourself to. The code will always let you do anything anywhere.
That's correct too. In the end, it really depends on where the developer set the
threshold between MV and C. We all have our working habits and there is more
than one way to do it (where did I already hear that ;) )
Bertrand Mansion
Mamasam