/** * Zend_View compatibility. Set the templates dir instead of scripts * * @see View/Zend_View_Abstract::setBasePath() * @return Ext_View_Smarty */ public function setBasePath($path, $classPrefix = 'Zend_View') { if (isset($this->_config['template_dir'])) { $path = $this->_config['template_dir']; } // syslog(LOG_ERR, "setBasePath :".$path); parent::setBasePath($path, $classPrefix); // $this->setScriptPath($path . 'script'); // $this->addTemplateDir($path . 'static'); $this->setScriptPath($path); $this->addTemplateDir($path); return $this; }
/** * Zend_View compatibility. Set the templates dir instead of scripts * * @see View/Zend_View_Abstract::setBasePath() * @return Ext_View_Smarty */ public function setBasePath($path, $classPrefix = 'Zend_View') { parent::setBasePath($path, $classPrefix); $this->setScriptPath($path . '/templates'); $this->addTemplateDir($path . '/templates/static'); return $this; }