我想在prestashop中創建自定義模塊,但它不顯示在後臺的模塊選項卡中。Prestashop:自定義模塊未顯示在後臺
我創建了一個非常基本的測試模塊,但即使這樣也不會顯示在後臺。
我的文件夾中的單個文件text.php:模塊/測試 這是文件的代碼:
<?php
if (!defined('_PS_VERSION_'))
exit;
class Test extends Module
{
public function __construct()
{
parent::__construct();
$this->name = 'Test';
$this->tab = 'Test';
$this->version = 1.0;
$this->author = 'Test';
$this->need_instance = 0;
$this->displayName = 'TEST';
$this->description = 'TEST';
}
public function install()
{
return (parent::install());
}
}
據我理解,這是不夠的基本模塊露面在後臺的模塊選項卡中。
任何想法可能是錯誤的?
嘗試將您的text.php重命名爲test.php –