I am AJAX context switching setup and working great for json, but when I try to
get html back, the controller is not disabling the layout.
In my init() function I have
$ajaxContext = $this->_helper->getHelper('AjaxContext');
$ajaxContext->addActionContext('conditions', array('json','html'))
->initContext();
/conditions/format/json/ works great, I just get the json encoded content
/conditions/format/html/ sends me the layout wrapped around the
conditions.ajax.phtml view
I have manually disabled the layout, if $this->_request->isXmlHttpRequest(),
but I thought the AjaxContent was supposed to do that for me, in html, json and
xml contexts. What am I missing?
I am using ZF 1.5.2
thanks for the help.
cheers,
Anton