Perhaps you could create an element or helper to act as a kind of sub view - you move the code that normally be in the view (i.e. looping through data, building tables etc.) and then return this into a variable in your view rather than just echoing it. You could then do what you wanted with it, pre layout.
You can obviously choose which layout (or none at all) to use in the controller - is it possible to set the layout from the view too? John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
