Php Prestashop后台模块
我试着在BackOffice标题中创建一个BackOffice模块和一个钩子 在admin/theme/header.tpl文件中,我添加了一个新的钩子Php Prestashop后台模块,php,module,prestashop,Php,Module,Prestashop,我试着在BackOffice标题中创建一个BackOffice模块和一个钩子 在admin/theme/header.tpl文件中,我添加了一个新的钩子{hook\u KALBOS},在PS\u钩子表中创建一个新钩子,FronController添加这个钩子 public function install() { return parent::install() && $this->registerHook('displayNav') && $th
{hook\u KALBOS}
,在PS\u钩子表中创建一个新钩子,FronController添加这个钩子
public function install()
{
return parent::install() && $this->registerHook('displayNav') && $this->registerHook('displayKalbos')
&& $this->registerHook('displayBackOfficeHeader') && $this->registerHook('displayHeader');
}
这是安装
public function hookDisplayKalbos($params)
{
return $this->display(__FILE__, 'bolang.tpl');
}
但是我仍然看不到BO头中的bolang.tpl文件内容。开发模式打开,显示以下内容:
Notice on line 346 in file /public_html/cache/smarty/compile/95/ad/d1/95add145939404fafdefe350fab4ada0465ee07f.file.header.tpl.php
[8] Undefined index: HOOK_KALBOS
这是一个很好的方法,或者我应该用其他方法来做吗?FrontController用于前台页面,而不是后台页面。什么是PrestaShop版本?@user3047312为什么要在后台标题中创建一个模块,请更具体一些,因为后台只是控制您的店铺行为。