public function init($options = null) { parent::init(); if ($this->_getParam('catID')) { $this->_categoryID = $this->_getParam('catID'); } }
public function init() { parent::init(); $dataImagePath = "../../" . $this->_config->document_root . "/data/images/"; // $this->_catalogImageFolder = $dataImagePath // . $this->_moduleTitle . "/"; $this->_imageFolder = $dataImagePath . $this->_moduleTitle . "/" . $this->_name . "/"; $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/" . $this->_name . "/"; }
/** * Initialize object. * Initialize some specific parameters for file management. * * @return void */ public function init() { parent::init(); $dataPath = $_SERVER['DOCUMENT_ROOT'] . Zend_Registry::get("www_root") . "/data/"; $this->_exportFilesFolder = $dataPath . "files/" . $this->_moduleTitle . "/" . "export/"; $this->_importFilesFolder = $dataPath . "files/" . $this->_moduleTitle . "/" . "import/"; $this->_imageFolder = $dataPath . "images/" . $this->_moduleTitle . "/"; $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/"; $this->view->assign('interval', $this->_interval); set_time_limit(180); }
public function init() { parent::init(); $dataImagePath = "../../" . $this->_config->document_root . "/data/images/"; // $this->_catalogImageFolder = $dataImagePath // . $this->_moduleTitle . "/"; $this->_imagesFolder = $dataImagePath . $this->_moduleTitle . "/" . $this->_name . "/"; $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/" . $this->_name . "/"; $this->_rootFilePath = "../../" . "data/files/" . $this->_moduleTitle . "/" . $this->_name . "/"; $this->view->cleaction = $this->_name; $this->_imgIndex = 'imagefeat'; $config = Zend_Registry::get('config')->toArray(); //banners.imagefeat.number $this->_imgFeatureNumber = $config[$this->_moduleTitle][$this->_imgIndex]['number']; //echo $this->_imgFeatureNumber; }
/** * 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] . "/"; } }
/** * 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] . "/"; } $modules = Cible_FunctionsModules::modulesFilters(); $this->_modules = $this->_getModulesFields($modules); $this->view->headScript()->appendFile($this->view->locateFile('reportsAction.js')); $this->view->headLink()->appendStylesheet($this->view->locateFile('reports.css')); }
public function init() { parent::init(); }