I extended the Zend_Controller_Action to apply the Context helper to all my
actions dynamically.
init(){
$contextSwitch = $this->_helper->getHelper('contextSwitch');
$contextSwitch->addActionContext($this->getRequest()->getActionName(),
array('json', 'xml'));
$contextSwitch->initContext();
}
Ralikwen wrote:
>
> Hi,
> I am using ExtJS as my interface so almost all of my actions could have
> AjaxContext returning json.
>
> How could I configure my bootstrap file so that AjaxContext/Json would be
> the default for all my actions and they would all use the same
> 'ajax.phtml' file as view?
>
> Thanks for the help.
> SWK
>
--
View this message in context:
http://www.nabble.com/set-default-context-in-bootstrap-tp22130108p22166836.html
Sent from the Zend Framework mailing list archive at Nabble.com.