我是 Prestashop 模块开发的新手。我正在尝试构建 amy 第一个 prestashop 模块[参考:http://doc.prestashop.com/display/PS16/Creating+a+first+module]。这是我的代码
<?php
if(!defined('_PS_VERSION_'))
exit();
class MyModule extends Module
{
public function _construct()
{
$this->name = 'mymodule';
$this->tab = 'front_office_features';
$this->version = '1.0.0';
$this->author = 'Rohit Prakash';
$this->need_instance = 0;
$this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_);
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('My module');
$this->description = $this->l('Description of my module.');
$this->confirmUninstall = $this->l('Are you sure you want to uninstall?');
if (!Configuration::get('MYMODULE_NAME'))
$this->warning = $this->l('No name provided');
}
public function install()
{
if (!parent::install())
return false;
return true;
}
public function uninstall()
{
if (!parent::uninstall())
return false;
return true;
}
}
当我尝试从后台安装 mymodule 时收到一条错误消息
“错误!无法安装模块 mymodule。不幸的是,该模块没有返回其他详细信息。”
请帮帮我!!