@ByteDoc: Mark is correct. The chief concern of MVC is separating view and controller logic, and secondarily, separating controller and model logic. This says nothing of preventing templates and layouts (view and view) from sharing data. In fact, I would argue that embedding view data in the controller violates DRY and tier separation almost as much as does putting business logic in the view.
@Mark: We'll be adding a set() method in the View class to allow this. If you check out http://api.cakephp.org/class_view.html#9b395079675c6a66ff23ea9c6c4a668e you can see that there are a few properties of the View class which are available in templates, elements, and layouts (i.e. $pageTitle [when rendering templates, elements or layouts, View is available as $this). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
