Matthew Weier O'Phinney-3 wrote:
> 
> -- Marko Korhonen <marko.korho...@datafisher.com> wrote
> (on Monday, 06 April 2009, 01:43 AM -0700):
> 
> Yes, views are allowed to access models for read-only purposes. It's
> usually better, however, to pass the model to the view from the
> controller or to wrap access to the model within a view helper rather
> than to instantiate it directly.
> 
> -- 
> Matthew Weier O'Phinney
> Software Architect      | matt...@zend.com
> Zend Framework          | http://framework.zend.com/
> 
> 

Would the view helper be the better choice, just to keep the controller
slim?
I think of just assigning  the request params to the view  in the controller
and every other logic in helpers, but then you would miss action helpers
perhaps. I try to keep controllers slim, but iam not successful with this
all time. I searching for a reusable strategy.



-- 
View this message in context: 
http://www.nabble.com/MVC---Model-in-View-tp22904523p23139207.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to