0 css controller module prestashop
(www.mkehome.com)模块的管理选项卡css
不起作用.当我点击MODULES时,我得不到结果页面的CSS.控制器没有为管理模块UI调用css.当我从所需的更新列表中进行更新时,我仍然没有得到结果页面的CSS.
我让所有其他用户界面工作得很好.
悬停在(JS)topmenublock
上homepage
也停止工作.
任何的想法?
小智 5
你在后端使用什么hoook来添加CSS文件?
注意:
public function install() {
if (!parent::install() OR
!$this->registerHook('displayHeader') OR
!$this->registerHook('displayBackOfficeHeader') ....
/**
* use this for Frontend
*/
public function hookDisplayHeader() {
$this->context->controller->addCSS(($this->_path) . 'css/styles.css', 'all');
}
/**
* use this for Backoffice
*/
public function hookDisplayBackOfficeHeader() {
$this->context->controller->addCSS(($this->_path) . 'css/admin-styles.css', 'all');
$this->context->controller->addJS(array(
_PS_JS_DIR_ . 'fileuploader.js',
));
}
Run Code Online (Sandbox Code Playgroud)
问候