Synchro wrote:
> I expect a page to be the result of many functions
> displaying many views at once. ... Do I
> need to build layout back-ends in my controllers in order to call
> multiple functions and gather relevant views together? But that makes a
> controller do a view's job as presentation structure ends up in
> controller logic...

I don't see that preparing data and getting them ready for presentation
is "a view's job." I think it's exactly a controller's job, that of
moving information from model(s) to view(s). Certainly a model can't do
that, as it's responsible to be a well from which one can call up some
category of data in a specified array format.

A controller and each of its views are inextricably linked by the
particular controller function specifically built to support a
particular view. The division between controller function and view is
not well defined, except that the view is supposed to be a largely rote
visual specialist while the controller is intended as an active
information collector.

Experience shows that the whole ensemble is easier to create and modify
if the controller does everything which cannot be concisely
accomplished within the view's visual structure.

At least, that's my own perspective on the matter. It is ready to be
corrected by others who have spent more time in this neck of the woods.


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to