On Feb 22, 2008, at 6:21 PM, jim starboard wrote:
> > In a view you have $content_for_layout but in the controller you set > it with $layout. What is the motivation behind this? They're completely different uses from completely different perspectives. The stuff you want injected into a layout is called $content_for_layout. If you want to switch to a non-default layout in a controller action you set $this->layout to the name of that layout. Seems pretty intuitive to me. -- John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
