Nov
26
Quick fix for my ajax problems
Posted by | Posted in CakePHP | Posted on 26-11-2007
I've been trying to work with ajax in CakePHP and it's been a pain in the a$$. I did find this work around though, which made my life much easier. In your controller just set a variable, $autoRender to false, then all you have to do is call it at the end of each presentation function. So it looks something like this:
class UsersController extends AppController
{
var $autoRender = false;
function index()
{
$this->render('index');
}
}
