Exemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->view->baseUrl = $this->_sBaseUrl;
     $this->_prepareLayout();
     $this->_oLayout->getView()->config = $this->_oConfig;
     $this->_oLayout->setViewScriptPath(APPLICATION_PATH . $this->_oConfig->views . '/layout');
     $this->view->setBasePath(APPLICATION_PATH . $this->_oConfig->views . '/modules/' . strtolower($this->getRequest()->getModuleName()));
     $this->view->addHelperPath(APPLICATION_PATH . $this->_oConfig->views . '/helpers');
     $this->view->addFilterPath(APPLICATION_PATH . $this->_oConfig->views . '/filters');
     $this->view->setLfiProtection(false);
     Zend_View_Helper_PaginationControl::setDefaultViewPartial('../../abstract/scripts/pagination_control.phtml');
 }
Exemplo n.º 2
0
 /**
  * Inicjalizacja obiektu - wyłączenie sprawdzania widoku (pliku phtml).
  * Dodanie katalogu klas dodatkowych helperów dla akcji.
  */
 public function init()
 {
     $oFrontCtrl = $this->getFrontController();
     $oFrontCtrl->setParams(array('noViewRenderer' => true, 'neverRender' => true));
     parent::init();
 }