Prestashop模块未显示在列表中

时间:2019-03-14 13:08:39

标签: php prestashop

我正在使用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中。

当我打开模块管理器时,该模块没有出现。在任何类别中。

我想念什么?

1 个答案:

答案 0 :(得分:0)

解决了。记住,您需要在模块->模块->模块目录下实际安装插件,然后单击安装