Either set $this-layout in the controller, or pass the name of the
alternate layout in the second parameter of $this-render( ).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group,
The question is: how I change the layout of the any view of the
PagesController without change the pages_controller.php page of
cake/libs/controller dir?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
You can take the pages_controller from libs/controller and put a copy in your app/controller directory then from there you can set layout for particular 'pages' based on a set of rules. Or if you make your own app_controller.php in your app you can set the layout there for pages as well
Sam DOn