If you use the request handler component, (and set the right header if
you´re not using scriptaculous),you cna add something like

if (request->isAjax()) this->layout=null

to beforeFilter or beforeRender, so you can get the same content from
a URL, but the layout is only delivered for non Ajax  requests.



On May 16, 2:25 am, "R. Rajesh Jeba Anbiah"
<[EMAIL PROTECTED]> wrote:
> On May 16, 1:12 pm, "Antonio Cortés" <[EMAIL PROTECTED]> wrote:> You must add
>
> > $this->layout = 'ajax';
>
>    <snip>
>
>    Or prefix "ajax" or "bare" in URL:
>
> http://example.com/ajax/controller/action
> orhttp://example.com/bare/controller/action
>
> --
>   <?php echo 'Just another PHP saint'; ?>
> Email: rrjanbiah-at-Y!com    Blog:http://rajeshanbiah.blogspot.com/


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