Yes, that tells you if you are in an Ajax call or not. But
RequestHandler->setAjax($controller) was what I was looking for because it
automatically sets the default layout or ajax layout depending on isAjax()
state.

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge.
BAKE ON!


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Ryan
Enviado el: MiƩrcoles, 20 de Diciembre de 2006 07:18 p.m.
Para: Cake PHP
Asunto: Re: Finding out if an action is called through AJAX, or direct
access

Isn't this what RequestHandler->isAjax() is for?


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

Reply via email to