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版本低了。 %E6%9C%88 我上传并读取Unicode文本文件,不能修改?而UTF-8格式的就可以? CSDN传统,升星散分 这段代码应该怎么改~ 求助:127.0.0.1和本机ip有区别吗? 在线等!!! "再"问如何将用户填入的表单信息,发送到指定邮箱!100分 有谁教会我用表单呀! 向大家请教MYSQL的问题? Mysql 的系统问题??? 请问微博的粉丝功能是如何实现的? 怎么列出所有文章分类以及分类下的文章 初学 求教。。
$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方法,哪里有定义?