Пример #1
0
 /**
  * Do some initialization on startup of every action
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     $this->_logger = $this->getLogger();
     // TODO find all usages of _logger and replace with getLogger()
     $this->view->title = $this->_request->getModuleName() . '_' . $this->_request->getParam('controller') . '_' . $this->_request->getParam('action');
     $this->__redirector = $this->_helper->getHelper('Redirector');
     $this->__flashMessenger = $this->_helper->getHelper('FlashMessenger');
     $this->view->flashMessenger = $this->__flashMessenger;
     $this->_breadcrumbs = $this->_helper->getHelper('breadcrumbs');
 }