Fatal error: Call to a member function setTemplateDir() 确定setTemplateDir()这个方法是否存在。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $this->context->smarty->assign(Meta::getMetaTags($this->context->language->id, $page_name));$this->context>smarty>assign('request_uri',Tools::safeOutput(urldecode($_SERVER['REQUEST_URI']))); 上面方法没觉得有问题?不是这样定义samrty的assin?$this->context>smarty>assign('变量名','值');$this->context->smarty->assign(Meta::getMetaTags($this->context->language->id, $page_name)); if ($this->multishop_context == -1) $this->multishop_context = Shop::CONTEXT_ALL | Shop::CONTEXT_GROUP | Shop::CONTEXT_SHOP; $this->bo_theme = ((Validate::isLoadedObject($this->context->employee) && $this->context->employee->bo_theme) ? $this->context->employee->bo_theme : 'default'); $this->context->smarty->setTemplateDir(array( _PS_BO_ALL_THEMES_DIR_.$this->bo_theme.DIRECTORY_SEPARATOR.'template', _PS_OVERRIDE_DIR_.'controllers'.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'templates' )); 为什么 smarty 变成了null了? $this->context->smarty->setTemplateDir(array(_PS_BO_ALL_THEMES_DIR_.$this->bo_theme.DIRECTORY_SEPARATOR.'template',_PS_OVERRIDE_DIR_.'controllers'.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'templates'));这个setTemplateDir方法,哪里有定义? prestashop里用了smarty这个模板引擎,但是这次不知道因为动了什么,$this->context->smarty直接指向null了。 你的PHP版本是5.2的吧?换成php5.4的。PHP版本低了。 新手提问:关于HTML5移动应用结合php写后台数据处理的问题 怎样检测数组里数据为连续的3位数? (给点意见吧..) 自己初学php,有些问题请教 有哪位对伪静态规则比较在行 数据库如何删除重复记录 请问这个评分效果怎么做 已经安装Zend .但是还是提示Attention: Zend Optimizer not Installed 请大家帮我看看,简单的几句为什么会出错 求一个好点的用session做的php购物车,急...在线等 (分不够可再加) php访问阿里云ots的RESTful接口,签名与官方文档中的始终不一致,求指点 怎么列出所有文章分类以及分类下的文章 初学 求教。。
$this->context>smarty>assign('request_uri',Tools::safeOutput(urldecode($_SERVER['REQUEST_URI'])));
$this->context>smarty>assign('变量名','值');$this->context->smarty->assign(Meta::getMetaTags($this->context->language->id, $page_name));
if ($this->multishop_context == -1)
$this->multishop_context = Shop::CONTEXT_ALL | Shop::CONTEXT_GROUP | Shop::CONTEXT_SHOP; $this->bo_theme = ((Validate::isLoadedObject($this->context->employee) && $this->context->employee->bo_theme) ? $this->context->employee->bo_theme : 'default');
$this->context->smarty->setTemplateDir(array(
_PS_BO_ALL_THEMES_DIR_.$this->bo_theme.DIRECTORY_SEPARATOR.'template',
_PS_OVERRIDE_DIR_.'controllers'.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'templates'
));
_PS_BO_ALL_THEMES_DIR_.$this->bo_theme.DIRECTORY_SEPARATOR.'template',
_PS_OVERRIDE_DIR_.'controllers'.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'templates'
));这个setTemplateDir方法,哪里有定义?