Daniel Gomes wrote:
you just have to create one layout, the default layout. Then you just
to have to create the views files that only have the content.
It's perfectly OK to have multiple layouts. Although the 'interesting'
bit (from a user perspective) can only be rendered by echo
$content_for_layout, other parts of each layout can contain different
static content, elements (echo $this->renderElement('my_element') ) ,
request actions (echo $this->requestAction(params) ) or plain old php.
The required layout is defined n the controller action by setting
$this->layout or passing the layout to $this->render(). See
http://api.cakephp.org/1.2/classController.html
Make sure you test any conflicts with other standard layouts (ajax etc)
that are set automagically by cake.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---