【问题标题】:Module not found in prestashop new module install在 prestashop 新模块安装中找不到模块
【发布时间】:2014-05-13 08:12:26
【问题描述】:

我创建了一个模块,当我尝试安装它时,出现“找不到模块”错误 我创建了一个文件夹 storedisplay 我在其中创建了一个文件 storedisplay.php 这是代码

if (!defined('_PS_VERSION_'))
exit;

class StoreDisplay extends Module
{
public function __construct()
{
$this->name = 'StoreDispaly';
$this->tab = 'Test';
$this->version = 1.0;
$this->author = 'infobia';


parent::__construct();

$this->displayName = $this->l('infobia store display');
$this->description = $this->l('display a store listbox.');
}



public function install()
{
if (parent::install() == false)// OR !$this->registerHook('displayStore'))
return false;
return true;
}


public function hookTop($params)
{
global $smarty;

return $this->display(__FILE__, 'infobiastoredisplay.tpl');
}




} 

【问题讨论】:

    标签: module prestashop


    【解决方案1】:

    模块名称在这里拼错:

    $this->name = 'StoreDispaly';
    

    【讨论】:

      猜你喜欢
      • 2016-03-19
      • 1970-01-01
      • 2021-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-16
      • 2023-02-07
      • 1970-01-01
      相关资源
      最近更新 更多