示例#1
0
 /**
  * Set some properties to redirect and process actions.
  *
  * @access public
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     // Sets the called action name. This will be dispatched to the method
     $this->_currentAction = $this->_getParam('action');
     // The action (process) to do for the selected object
     $this->_actionKey = $this->_getParam('actionKey');
     $this->_formatName();
     $this->view->assign('cleaction', $this->_labelSuffix);
     $dataImagePath = "../../" . $this->_config->document_root . "/data/images/";
     if (isset($this->_objectList[$this->_currentAction])) {
         $this->_imageFolder = $dataImagePath . $this->_moduleTitle . "/";
     }
     // . $this->_objectList[$this->_currentAction] . "/";
     if (isset($this->_objectList[$this->_currentAction])) {
         $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/";
     }
     // . $this->_objectList[$this->_currentAction] . "/";
 }
示例#2
0
 /**
  * Initiate some specific variables on loading
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     //Add specific style sheet
     $this->view->headLink()->prependStylesheet($this->view->locateFile('moduleForm.css'));
 }