
php smarty问题
classSmartyProjectextendsSmarty{functionSmartyProject(){parent::Smarty();$this->templ...
class SmartyProject extends Smarty{
function SmartyProject(){
parent::Smarty();
$this->template_dir="./";
$this->compile_dir="./system/Smarty/templates_c/";
$this->config_dir="./system/Smarty/configs/";
$this->cache_dir="./system/Smarty/cache/";
$this->left_delimiter="{";
$this->right_delimiter="}";
}
实例化对象后 不能用Smarty的方法! 何解 在线等!!!!! 展开
function SmartyProject(){
parent::Smarty();
$this->template_dir="./";
$this->compile_dir="./system/Smarty/templates_c/";
$this->config_dir="./system/Smarty/configs/";
$this->cache_dir="./system/Smarty/cache/";
$this->left_delimiter="{";
$this->right_delimiter="}";
}
实例化对象后 不能用Smarty的方法! 何解 在线等!!!!! 展开
3个回答
展开全部
为什么不直接实例化 Smarty,赋给一个变量,然后操作。这样使用继承类,一般在项目中不常用。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询