繁体   English   中英

Prestashop模块未显示在列表中

[英]Prestashop module not showing in the list

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

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

我想念什么?

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM