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; $request = $this->getRequest(); if (!method_exists($request, 'isXmlHttpRequest') || !$this->getRequest()->isXmlHttpRequest()) { return; } return parent::initContext($format); } }