我想用这样的模板调用一个钩子:
{hook h='displayCustom' mod='customcontent'}我创建了一个新的钩子并向模块添加了如下方法:
$this->registerHook('displayCustom');
public function hookDisplayCustom($params) {
return $this->display(__FILE__, 'customcontent.tpl');
} 我看到这个模块被触发了,但是没有输出。我怎么才能修好它?Prestashop 1.6,customcontent.tpl包含简单的文本“测试”。
发布于 2014-12-08 19:01:37
如果这件事有麻烦的话。可能的解决方案是:管理面板中有一个触发器,可以关闭除本机之外的所有其他模块。路径是:管理面板->配置->性能->关闭所有非本地模块。一定要关机。
https://stackoverflow.com/questions/27331663
复制相似问题