【发布时间】: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