Hi all.
I'm reading "Zend Framework in action" and for the Ajax context there is
write to insert this lines in the init() controller's function:
$ajaxContent = $this->_helper->getHelper('AjaxContext');
$ajaxContent->addActionContext('myAction','json');
$ajaxContent->initContext();
Now It works when I need to send (via ajax response) an HTML code, but
If I need to send an Array like :
$arr = array('code' => 0,
'msg' => 'Attivazione effettuata'
);
How this ?
In the book (page 106) there is example (feedback.json.pthml):
<?php
echo get_object_vars($this);
?>
But I don't understand why it does not work for me. When I call a simil
function I receive the entire layout. Where is my error ?.
M.
--
Michel 'ZioBudda' Morelli mic...@ziobuddalabs.it
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ajaxblog.it MSN: mic...@ziobuddalabs.it
JABBER: mic...@gmail.com