gwoo wrote:
> >
> > function delete($id)
> >     {
>                  $this->autoRender = false;
> >             $this->Post->del($id);
> >     }
> >

To do it only when it's an ajax call, use RequestHandler component.

class SomeController extends AppController
{
    var $components = array('RequestHandler');

    function delete($id)
    {
        if($this->RequestHandler->isAjax()) { $this->autoRender=false;
}
    }

}


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