On Nov 20, 11:38 pm, ulterior <[EMAIL PROTECTED]> wrote:
> Hey All,
>
> I'm really drawing a blank here! All my ajax requests are using the
> default layout even though I am setting the layout in the controller
> action.
>
> $this->layout = 'ajax';
put ^^ in the view file if it's an ajax only action.
But as I mentioned on irc, if you are setting it in the action, you or
some other logic are subsequently overriding the layout. (Note that an
error message will use the default layout.)
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---