if ($this->RequestHandler->isAjax()){
$this->render('edit','ajax');
}
if your action are called by ajax, the view will be rendered with the
layout ajax
Titang
On 10 May, 02:58, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Sliv wrote:
> >http://manual.cakephp.org/chapter/request_handler
>
> yeah thanks, but there is no sample in my case wrrrr....
>
> my code
>
> controller Email
> var $components = array('RequestHandler');
>
> function index()
> {
> $this->RequestHandler->setAjax($this);
> }
>
> function edit()
> {
> $this->render('edit');
> }
>
> index.thtml
> if <?php $this->render('edit'); ?> /* double layout*/
> if <?php $this->render('edit','ajax'); ?> /* no layout at all, ajax
> action inside edit.thtml not working*/
>
> what I am missing ? please give me a sing
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---