コード例 #1
0
 public function preDispatch()
 {
     $this->_helper->authCheck();
     $this->_helper->aclCheck();
     $this->_helper->layout->setLayout('admin');
     parent::init();
 }
コード例 #2
0
ファイル: AGL.php プロジェクト: rom1git/Centurion
 /**
  * @todo : description
  *
  * @return void
  */
 public function init()
 {
     //@TODo Why 2 call to direct() ?
     $this->getHelper('ContextAutoSwitch')->direct(array('index', 'list'));
     $this->getHelper('ContextAutoSwitch')->direct();
     //@TODO: why call to setParams. Params should already have been populated by frontController
     $this->_request->setParams($this->getHelper('params')->direct());
     parent::init();
 }
コード例 #3
0
 public function init()
 {
     $this->_helper->authCheck();
     $this->_helper->aclCheck();
     parent::init();
 }
コード例 #4
0
ファイル: AGL.php プロジェクト: netconstructor/Centurion
 public function init()
 {
     $this->getHelper('ContextAutoSwitch')->direct(array('index', 'list'));
     $this->getHelper('ContextAutoSwitch')->direct();
     $this->_request->setParams($this->getHelper('params')->direct());
     parent::init();
 }
コード例 #5
0
ファイル: Mptt.php プロジェクト: netconstructor/Centurion
 public function init()
 {
     parent::init();
     $this->getHelper('ContextAutoSwitch')->direct(array('index', 'create', 'delete'));
     $this->getRequest()->setParams($this->getHelper('params')->direct());
 }
コード例 #6
0
ファイル: Mptt.php プロジェクト: rom1git/Centurion
 public function init()
 {
     $this->view->infos = array();
     $this->view->errors = array();
     parent::init();
     $this->view->formViewScript = array();
     $this->getHelper('ContextAutoSwitch')->direct(array('index', 'create', 'delete'));
     $this->getRequest()->setParams($this->getHelper('params')->direct());
     if ($this->getRequest()->getParam('saving') == 'done') {
         $this->view->infos[] = $this->view->translate('Saving has been done.');
         $this->getRequest()->setParam('saving', null);
     }
 }