Php 在Prestashop的模块列表中找不到模块
我正在尝试创建一个模块,但是mymodule没有显示在模块列表中,我已经做了以下一些事情 1.)在prestashop根目录的modules目录中有mymodcomments/mymodcomments.php。 这里的代码是Php 在Prestashop的模块列表中找不到模块,php,prestashop,prestashop-1.5,prestashop-1.6,Php,Prestashop,Prestashop 1.5,Prestashop 1.6,我正在尝试创建一个模块,但是mymodule没有显示在模块列表中,我已经做了以下一些事情 1.)在prestashop根目录的modules目录中有mymodcomments/mymodcomments.php。 这里的代码是 <?php class MyModComments extends Module { public function __construct() { $this->name = 'mymodcomments';
<?php
class MyModComments extends Module
{
public function __construct()
{
$this->name = 'mymodcomments';
$this->tab = 'front_office_features';
$this->version = '0.1';
$this->author = 'coold';
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('My Module of product comments');
$this->description = $this->l('With this module, your customers will be able to grade and comments your products.');
}
}
?>
我清楚地理解了这段代码,但在后台的模块列表中看不到我的模块
我的另一个问题是:
我使用的是windows,使用prestashop时是否有任何文件权限?当模块类和模块名称使用不同的大写或小写时,有时会出现问题 尝试定义以下内容:
class mymodcomments extends Module
{
public function __construct()
{
$this->name = 'mymodcomments';
$this->tab = 'front_office_features';
$this->version = '0.1';
$this->author = 'coold';
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('My Module of product comments');
$this->description = $this->l('With this module, ....');
}
}
它不雅致,但能起作用
关于大写字母问题,prestashop上没有报道。95%的安装工作正常,但由于未知原因,一些预安装无法面对这些差异带来的问题
问候