Php getContent()未在Prestashop模块中显示配置链接
我目前正在编写一个Prestashop模块,并尝试创建一个配置页面 在阅读文档和其他模块之后,我结束了对该代码段的测试:Php getContent()未在Prestashop模块中显示配置链接,php,prestashop,Php,Prestashop,我目前正在编写一个Prestashop模块,并尝试创建一个配置页面 在阅读文档和其他模块之后,我结束了对该代码段的测试: <?php public function getContent() { return '<h1>Config</h1>'; } 在模块的config.xml文件中,有一个可配置的选项: blocktopmenu 1. 1. 它也可以从模块构造函数中配置: <?php class MyModule extends Modul
<?php
public function getContent() {
return '<h1>Config</h1>';
}
在模块的config.xml
文件中,有一个可配置的选项:
blocktopmenu
1.
1.
它也可以从模块构造函数中配置:
<?php
class MyModule extends Module {
public function __construct() {
// ...
$this->is_configurable = true;
// ...
}
}
是啊!看着XML,我觉得它们是构造函数的相同对象成员,并尝试了$this->is_configurable=true
行。编辑以根据您的答案分享我的方法。谢谢:)