示例#1
0
 /**
  * (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();
 }
示例#3
0
 /**
  * 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");
 }
示例#4
0
 /**
  * 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/');
     }
 }
示例#5
0
 /**
  * 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;
 }
示例#6
0
 public function init()
 {
     /*
      * @change GDE - 05/2014 - Content Translation
      * Load translation
      */
     $this->view->nodeTranslate = new Translate_Content_Node();
     parent::init();
 }
示例#7
0
 /**
  * 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();
 }
示例#8
0
 /**
  * (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');
 }
示例#9
0
 /**
  *
  */
 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';
     }
 }
示例#10
0
 /**
  * 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();
     }
 }
示例#11
0
 /**
  * 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';
     }
 }
示例#12
0
 /**
  * (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');
 }
示例#13
0
 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;
     }
 }
示例#15
0
 public function init()
 {
     parent::init();
 }
示例#16
0
 /**
  * (non-PHPdoc)
  * @see library/Sydney/Controller/Sydney_Controller_Action#init()
  */
 public function init()
 {
     parent::init();
     $this->_helper->layout->disableLayout();
 }