简体   繁体   English

Prestashop模块未显示在列表中

[英]Prestashop module not showing in the list

I'm using Prestashop 1.7.5.2. 我正在使用Prestashop 1.7.5.2。
This is my code: 这是我的代码:

<?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();
    }
}
?>

File is named plugin.php and is located in /modules/plugin. 该文件名为plugin.php,位于/ modules / plugin中。

When I open module manager, the module does not appear. 当我打开模块管理器时,该模块没有出现。 In any category. 在任何类别。

What am I missing? 我想念什么?

Solved it. 解决了它。 Remember that you need to actually install the plugin under modules -> module -> module catalog and click install 请记住,您需要在模块->模块->模块目录下实际安装插件,然后单击安装

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

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