public function preDispatch()
 {
     $this->_helper->authCheck();
     $this->_helper->aclCheck();
     $this->_helper->layout->setLayout('admin');
     parent::init();
 }
Ejemplo n.º 2
0
 /**
  * @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();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 5
0
 public function init()
 {
     parent::init();
     $this->getHelper('ContextAutoSwitch')->direct(array('index', 'create', 'delete'));
     $this->getRequest()->setParams($this->getHelper('params')->direct());
 }
Ejemplo n.º 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);
     }
 }