/** * (non-PHPdoc) * @see core/library/Sydney/Controller/Sydney_Controller_Action::init() */ public function init() { parent::init(); $this->getResponse()->setHeader("Cache-Control", "no-cache, must-revalidate"); $this->_helper->contextSwitch()->initContext(); $this->_helper->layout->disableLayout(); }
/** * Controller initialization */ public function init() { parent::init(); //$this->view->addHelperPath(Zend_Registry::get("config")->general->rootPath.'/core/application/modules/adminpages/views/helpers', 'Adminpages_Views_Helpers'); $this->getResponse()->setHeader("Cache-Control", "no-cache, must-revalidate"); $this->_helper->contextSwitch()->initContext(); }
/** * Controller initialization */ public function init() { parent::init(); $this->getResponse()->setHeader("Cache-Control", "no-cache, must-revalidate"); // Init the Context Switch Action helper $contextSwitch = $this->_helper->contextSwitch(); // GDE - #52-Ajouts exports CSV - 07/08/2013 if ($this->getRequest()->getParam('format') == 'csv') { // Init $this->setIsCsv(true); // Excel format context $excelConfig = array('csv' => array('suffix' => 'csv', 'headers' => array('Content-type' => 'text/csv'))); // Add the new context $contextSwitch->setContexts($excelConfig); // Set the new context to the reports action //$contextSwitch->addActionContext('export', 'excel'); // choose common view $this->_helper->viewRenderer('log'); } // Initializes the action helper $contextSwitch->initContext(); $this->_helper->layout->disableLayout(); // get the request data $r = $this->getRequest(); $this->jsonstr = false; if (isset($r->jsonstr)) { $this->jsonstr = Zend_Json::decode($r->jsonstr); } $this->_isService = true; parent::init(); $this->getResponse()->setHeader("Cache-Control", "no-cache, must-revalidate"); }
/** * Initialize object, overrides the parent method * @return void */ public function init() { parent::init(); if (!in_array(7, $this->usersData['member_of_groups'])) { $this->redirect('/admindashboard/index/index/'); } }
/** * Initialization of the basics */ public function init() { parent::init(); $this->setSubtitle('Global Admin'); $this->setSideBar('index', 'adminglobal'); $this->layout->langswitch = false; $this->layout->search = false; }
public function init() { /* * @change GDE - 05/2014 - Content Translation * Load translation */ $this->view->nodeTranslate = new Translate_Content_Node(); parent::init(); }
/** * Init of the helpers for this controller. We are calling the parent init() first * @return */ public function init() { parent::init(); /* * @change GDE - 05/2014 - Content Translation * Load translation */ $this->view->pageTranslate = new Translate_Content_Content(); }
/** * (non-PHPdoc) * @see Sydney_Controller_Action::init() */ public function init() { parent::init(); $this->setSubtitle('Adminfolders'); $this->setSideBar('index', 'adminfolders'); $this->layout->langswitch = false; $this->layout->search = false; $this->view->headLink()->appendStylesheet($this->view->cdnurl . '/sydneyassets/styles/zendform.css'); $this->view->headLink()->appendStylesheet($this->view->cdnurl . '/sydneyassets/styles/multilinktable.css'); }
/** * */ public function init() { parent::init(); $reg = Zend_Registry::getInstance(); $this->config = $reg->get('config'); if (isset($this->config->general->defaultmodule)) { $this->defaultModule = $this->config->general->defaultmodule; } else { $this->defaultModule = 'admin'; } }
/** * Controller initialization */ public function init() { $this->_isService = true; parent::init(); $this->getResponse()->setHeader("Cache-Control", "no-cache, must-revalidate"); $this->_helper->contextSwitch()->initContext(); $refactor = $this->getRequest(); if (isset($refactor->layout) && $refactor->layout == 'none') { } else { $this->_helper->layout->disableLayout(); } }
/** * Controller initialization */ public function init() { $this->_isService = true; parent::init(); $this->getResponse()->setHeader("Cache-Control", "no-cache, must-revalidate"); $this->_helper->contextSwitch()->initContext(); $this->_helper->layout->disableLayout(); $r = $this->getRequest(); if (isset($r->module)) { $this->eModule = $r->emodule; } else { $this->eModule = 'pages'; } }
/** * (non-PHPdoc) * @see Sydney_Controller_Action::init() */ public function init() { parent::init(); $this->setSubtitle('Image Editor'); $this->setSideBar('index', 'default'); $this->layout->langswitch = false; $this->layout->search = false; $this->view->headLink()->appendStylesheet($this->view->cdnurl . '/sydneyassets/styles/imageeditor.css'); $this->view->headLink()->appendStylesheet('/sydneyassets/yui/build/resize/assets/skins/sam/resize.css'); $this->view->headLink()->appendStylesheet('/sydneyassets/yui/build/imagecropper/assets/skins/sam/imagecropper.css'); $this->view->headScript()->appendFile($this->view->cdnurl . '/sydneyassets/scripts/public/jquery.imageeditor.js', 'text/javascript'); $this->view->headScript()->appendFile('/sydneyassets/yui/build/resize/resize-min.js', 'text/javascript'); $this->view->headScript()->appendFile('/sydneyassets/yui/build/imagecropper/imagecropper-min.js', 'text/javascript'); }
public function init() { parent::init(); $this->r = $this->getRequest(); $this->view->r = $this->r; // IF public profile > no setup layout admin if ($this->r->module == 'publicms' && $this->r->controller == 'profile') { $this->_isService = true; } else { $this->view->headLink()->appendStylesheet($this->view->cdnurl . '/sydneyassets/styles/zendform.css'); } $this->setSubtitle('People'); $this->setSideBar('index', 'people'); $this->layout->langswitch = true; $this->layout->search = true; if (isset($this->r->id) && preg_match('/^[0-9]{1,10}$/', $this->r->id)) { $this->view->id = $this->r->id; } }
/** * Controller initialization */ public function init() { parent::init(); $this->getResponse()->setHeader("Cache-Control", "no-cache, must-revalidate"); $this->_helper->contextSwitch()->initContext(); // get the request data $r = $this->getRequest(); $this->jsonstr = false; $this->fileid = false; $this->newsid = false; if (isset($r->jsonstr)) { $this->jsonstr = Zend_Json::decode($r->jsonstr); } if (isset($r->fileid) && $r->fileid != 'undefined') { $this->fileid = Zend_Json::decode($r->fileid); } if (isset($r->datatable)) { $this->datatable = $r->datatable; } }
public function init() { parent::init(); }
/** * (non-PHPdoc) * @see library/Sydney/Controller/Sydney_Controller_Action#init() */ public function init() { parent::init(); $this->_helper->layout->disableLayout(); }