コード例 #1
0
ファイル: Base.php プロジェクト: gilad1987/picabo
 protected function preDispatch()
 {
     $this->_view->pageTitle = APP_TITLE;
     $this->_view->contentTitle = 'עמוד ראשי';
     $model = new App_Model_DbTable_Uploads();
     $this->_view->uploads_count = $model->getCount();
     parent::preDispatch();
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: omusico/logica
 /**
  * Overrides preDispatch() from App_Controller
  * 
  * @access public
  * @return void
  */
 public function preDispatch()
 {
     parent::preDispatch();
     $controllerName = $this->getRequest()->getControllerName();
     $actionName = $this->getRequest()->getActionName();
     $this->view->headScript()->prependFile($this->view->baseUrl() . '/js/jquery.min.js');
     Zend_Registry::set('controllerName', $controllerName);
     Zend_Registry::set('actionName', $actionName);
     // check the Flag and Flippers
     $this->_checkFlagFlippers();
 }
コード例 #3
0
ファイル: Controller.php プロジェクト: omusico/logica
 /**
  * Overrides preDispatch() from App_Controller
  * Fetch and prepare the cart system in the namespace
  * 
  * @access public
  * @return void
  */
 public function preDispatch()
 {
     parent::preDispatch();
     $controllerName = $this->getRequest()->getControllerName();
     $actionName = $this->getRequest()->getActionName();
     Zend_Registry::set('controllerName', $controllerName);
     Zend_Registry::set('actionName', $actionName);
     Zend_Registry::set('Zend_Request', $this->getRequest());
     // check the Flag and Flipper
     $this->_checkFlagFlippers();
     $this->view->headScript()->appendFile($this->view->baseUrl() . '/js/jquery-ui-i18n.js');
     /** if the user change Language, he must stay, in the same page
      * s.elguennuni@gmail.com 
      */
     $Url = new Zend_Session_Namespace('Member');
     $Url->urlprevious = $Url->requestUri;
     $Url->requestUri = $this->getRequest()->getRequestUri();
 }