【发布时间】:2019-03-15 20:52:58
【问题描述】:
我正在使用 Prestashop 1.7.5.2。
这是我的代码:
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
class plugin extends Module {
public function __construct()
{
$this->name = 'plugin';
$this->tab = 'front_office_features';
$this->version = 1.0;
$this->author = 'Firstname Lastname';
$this->need_instance = 1;
$this->displayName = $this->l('Module');
$this->description = $this->l('ASDFGHJKL');
parent::__construct();
}
public function install()
{
if (parent::install() == false) {
return false;
}
return true;
}
public function uninstall()
{
if (!parent::uninstall()) {
Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'mymodule`');
}
parent::uninstall();
}
}
?>
文件名为plugin.php,位于/modules/plugin。
当我打开模块管理器时,模块没有出现。在任何类别。
我错过了什么?
【问题讨论】:
-
您使用的是哪个 prestashop 版本?
-
更新了问题@TheDrot
标签: php prestashop