i'm trying tu use the AjaxContent respond at the ajax request in MVC pattern.
now, i call loginAction (where i correctly use a models and get connection into db) from LoginController.
I'm following "Zend Framework in Action" in this way:
LoginController:
- Code: Select all
public function init()
{
$ajaxContext = $this->_helper->getHelper('AjaxContext');
$ajaxContext->addActionContext('login', 'json');
$ajaxContext->initContext();
}
public function loginAction(){
......
......
$this->_view->login = $response;
}
now i try the get this response into /application/views/login/login.ajax.json.phtml :
- Code: Select all
<?php echo this->login; ?>
but this is not work correctly!
how can use it? wich folder should i put inside this login.ajax.json.phtml?
thanks!

