AJAX reponse from Controller
Permalink
Hi guys,
I have an action_ajax method that does some DB stuff. In the end I want to return the contents of my default view.php template. How can I do that?
I've tried:
echo $this->view();
$this->redirect('view');
$this->render('view');
But none of these seem to display the content of the view() method.
Any ideas?
I have an action_ajax method that does some DB stuff. In the end I want to return the contents of my default view.php template. How can I do that?
I've tried:
echo $this->view();
$this->redirect('view');
$this->render('view');
But none of these seem to display the content of the view() method.
Any ideas?