addContext('html', array('suffix' => 'ajax')); } /** * Initialize AJAX context switching * * Checks for XHR requests; if detected, attempts to perform context switch. * * @param string $format * @return void */ public function initContext($format = null) { $this->_currentContext = null; if (!$this->getRequest()->isXmlHttpRequest()) { return; } return parent::initContext($format); } }