public function init() { $this->context = 'json'; $this->_helper->viewRenderer->setNoRender(true); $this->_helper->getHelper('layout')->disableLayout(); // Should be of MIME type application/json but IE is CRAP and tries to // download the server response! header('Content-type: text/plain'); parent::init(); }
public function init() { parent::init(); // Get name of static page from URI $action = trim($this->getRequest()->getRequestUri(), '/'); $action = str_replace('/', '-', $action); $action = strtolower($action); // Set panel content, if any $this->_helper->panelcontent->fetch('connect-brochureware-' . $action); }
public function init() { $this->context = 'json'; $this->_helper->viewRenderer->setNoRender(); $this->_helper->getHelper('layout')->disableLayout(); // Should be of MIME type application/json but IE is CRAP and tries to // download the server response! header('Content-type: text/plain'); // Load session data into private variables $pageSession = new Zend_Session_Namespace('online_claims'); if (isset($pageSession->ClaimReferenceNumber)) { $this->_claimReferenceNumber = $pageSession->ClaimReferenceNumber; } parent::init(); }
/** * Initialise controller * * @throws Exception * @return void */ public function init() { parent::init(); // Set template directory paths $this->getTemplating()->getLoader()->addPath(__DIR__ . '/../views/scripts'); $this->getTemplating()->getLoader()->addPath(__DIR__ . '/../layouts'); // If this is an XHR request, turn off the layout if ($this->getSymfonyRequest()->isXmlHttpRequest()) { $this->_helper->viewRenderer->setNoRender(true); $this->_helper->layout->disableLayout(); } // Embed JS and jQuery plugins $this->view->headScript()->appendFile('/assets/vendor/jquery-date/js/date.js'); $this->view->headScript()->appendFile('/assets/vendor/jquery-datepicker/js/jquery.datePicker.js'); $this->rateDatasource = new Datasource_Insurance_RentRecoveryPlus_Rates(); }
public function init() { parent::init(); // append onlineclaims javascript and style sheet $this->view->headLink()->appendStylesheet('/assets/vendor/jquery-cluetip/css/cluetip.css')->appendStylesheet('/assets/vendor/jquery-datepicker/css/datePicker.css'); $this->view->headScript()->appendFile('/assets/vendor/jquery-date/js/date.js'); $this->view->headScript()->appendFile('/assets/vendor/jquery-datepicker/js/jquery.datePicker.js'); $this->view->headScript()->appendFile('/assets/vendor/jquery-cluetip/js/jquery.cluetip.js'); $this->view->headScript()->appendFile('/assets/connect/js/rentguaranteeclaims/jquery.limitkeypress.min.js'); $this->view->headScript()->appendFile('/assets/connect/js/rentguaranteeclaims/claim_form.js'); $this->view->headScript()->appendFile('/assets/connect/js/rentguaranteeclaims/addressLookupClaims.js'); $params = array(); $params['url'] = $this->getRequest()->getRequestUri(); $params['url'] = substr($params['url'], 1); // Initiating sidebar for online claims $this->view->sidebar = $this->view->partial('partials/rent-guarantee-claim-sidebar.phtml'); // Load session data into private variables $pageSession = new Zend_Session_Namespace('online_claims'); if (isset($pageSession->ClaimReferenceNumber)) { $this->_claimReferenceNumber = $pageSession->ClaimReferenceNumber; } }
/** * Initialise controller * * @throws Exception * @return void */ public function init() { parent::init(); // Set template directory paths $this->getTemplating()->getLoader()->addPath(__DIR__ . '/../views/scripts'); $this->getTemplating()->getLoader()->addPath(__DIR__ . '/../layouts'); // If this is an XHR request, turn off the layout if ($this->getSymfonyRequest()->isXmlHttpRequest()) { $this->_helper->viewRenderer->setNoRender(true); $this->_helper->layout->disableLayout(); } // If current agent is not in IRIS then throw exception if (!$this->_isAgentInIris) { throw new \Exception('Agent is currently not in IRIS referencing system'); } // Embed IRIS-specific styles and date picker style $this->view->headLink()->appendStylesheet('/assets/connect/css/iris.css', 'all'); $this->view->headLink()->appendStylesheet('/assets/vendor/jquery-datepicker/css/datePicker.css'); // Embed JS and jQuery plugins $this->view->headScript()->appendFile('/assets/connect/js/addressfinder.iris.plugin.jquery.js'); $this->view->headScript()->appendFile('/assets/vendor/jquery-date/js/date.js'); $this->view->headScript()->appendFile('/assets/vendor/jquery-datepicker/js/jquery.datePicker.js'); }
public function init() { parent::init(); // Include the settings CSS $this->view->headLink()->appendStylesheet('/assets/connect/css/settings.css'); // Instantiate the agency-level manager, user manager and the external news manager $this->_agentManager = new Manager_Core_Agent($this->_agentSchemeNumber); $this->_userManager = new Manager_Core_Agent_User($this->_agentId); $this->_extNewsManager = new Manager_Cms_ExternalNews(); // Set any common parameters to pass to the view $this->view->userRole = Model_Core_Agent_UserRole::toString($this->_level); // Set up function level access depending on user level switch ($this->_level) { case Model_Core_Agent_UserRole::MASTER: $this->_functionAccess = array('emailAddresses' => true, 'uploadConnectLogo' => true, 'uploadDocumentLogo' => true, 'newsTickerSettings' => true, 'userAdministration' => true); break; default: $this->_functionAccess = array('emailAddresses' => false, 'uploadConnectLogo' => false, 'uploadDocumentLogo' => false, 'newsTickerSettings' => true, 'userAdministration' => false); break; } // This is passed to view $this->view->functionAccess = $this->_functionAccess; }
public function init() { // Include the premier CSS $this->view->headLink()->appendStylesheet('/assets/connect/css/premier.css'); parent::init(); }
public function init() { $this->view->headLink()->appendStylesheet('/assets/connect/css/news.css'); $this->_blogManager = new Manager_Connect_Blog(); parent::init(); }
public function init() { $this->_blockFsaStatus = array('IO', 'IAR'); parent::init(); }