Hi saavedrajj,

copy the pages controller from cake/libs/controller to /app/controller
if you haven't already.

In the pages display method, use whatever logic you like to determine
if the layout should change, and set the layout variable. e.g.

// START EDIT. After the page variable has been determined change the
layout if needed.
if ($page=="special") // /app/views/pages/special.thtml
{
$this->layout = 'wierd'; // /app/views/layouts/wired.thtml
}
// END EDIT.
$this->set('page', $page);
// etc.

And off you go...

cheers,

AD7six


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to