On 8/7/06, ByteDoc <[EMAIL PROTECTED]> wrote:
>
> The line that has to be drawn here is not easy to see, I hope I can
> make my opinion clear without using too much words (long explanations
> are more confusing than helpful).
>
> A view should not be able to set any kind of data whatsoever - because
> it is a _view_.

To me, this is where your argument breaks down. A view is only part of
the picture.

    A view *and a layout* *and perhaps some elements* is the _view_

To say a view cannot set data is shortsighted. Perhaps a better way to
think of this is to think of "passing" data instead of setting data.

A view passes data into its helpers which in turn generate html on
behalf of the view.
A view passes data into its elements for the same reason.
Why should a view not be able to pass data to its layout, which in
turn generates html on behalf of the view. - it strikes me as odd that
people would want to seperate this case.

I wholely agree that views should not be allowed to set any data other
than in these circumstances.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to