On Aug 8, 2006, at 10:59 AM, Tuner wrote:

>
> What solution is made to prevent loading layout more than one time
> while rendering diffrent views? When I run action and in its view put
> request for another action layout is loaded only one time. I was
> looking throw the code but I haven't found any code responsible for
> that.

Not exactly sure what your question is, but maybe this well help:

You can change layouts on the fly inside your actions by setting the  
controller's $layout var:

function myAction()
{
        //changes it to /app/views/layouts/something.thtml
        $this->layout = 'something';
}

The ''ajax' layout is empty, so you might use it when you want no  
layout shown at all:

$this->layout = 'ajax';

-- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to