Correct.

Write operations and generally changes deriving from logic in views is
really to be avoided.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 26 January 2013 18:23, Ralf Eggert <[email protected]> wrote:

> Hi Marco,
>
> Thanks for your comment.
>
> > I'd say this is a good practice! The view should not know that there is a
> > pizza service, but the helper can have that. In fact, many helpers have
> > references to more complex services like the router or generally things
> > that are not view-specific.
>
> But all of these only read the data from these services, don't they. The
> routing will not be changed by the view helper. So, if the access to
> other objects is limited to reading data, it should be ok, shouldn't it?
>
> Regards,
>
> Ralf
>
>
> --
> List: [email protected]
> Info: http://framework.zend.com/archives
> Unsubscribe: [email protected]
>
>
>

Reply via email to