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();
 }
 public function init()
 {
     $this->_helper->authCheck();
     $this->_helper->aclCheck();
     parent::init();
 }
示例#4
0
 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
 public function init()
 {
     parent::init();
     $this->getHelper('ContextAutoSwitch')->direct(array('index', 'create', 'delete'));
     $this->getRequest()->setParams($this->getHelper('params')->direct());
 }
示例#6
0
 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);
     }
 }