0
我想打電話從模板這樣的鉤子:的Prestashop模板勾調用
{hook h='displayCustom' mod='customcontent'}
我創建了一個新的鉤和添加方法到模塊是這樣的:
$this->registerHook('displayCustom');
public function hookDisplayCustom($params) {
return $this->display(__FILE__, 'customcontent.tpl');
}
我看到模塊觸發但沒有輸出。我該如何解決它?Prestashop 1.6,customcontent.tpl內容簡單文本'TEST'。