public function init($modelName) { parent::init(); $this->setRoles($modelName); $this->setResources(); $this->setPrivilages(); $this->setAcl(); }
private function __construct() { parent::init(); $this->view = new Zend_View(); foreach ($this->types as $type) { $this->messages[$type] = array(); if ($type != self::TYPE_DEBUG) { /** @noinspection PhpIncludeInspection */ $this->messagesDict[$type] = (include APPLICATION_PATH . '/configs/messages/' . $type . '.php'); } } $this->readFromSession(); }
public function init() { $this->_registry = new Ot_Config_Register(); $this->_identity = Zend_Auth::getInstance()->getIdentity(); parent::init(); }
public function init() { $this->cache = Zend_Registry::get('cache'); parent::init(); }
public function init() { $this->_logger = Zend_Registry::get('logger'); parent::init(); }
public function init() { parent::init(); // inject dependencies to action controller $this->container->injectOn($this->getActionController()); }