0 użytkowników i 3 Gości przegląda ten wątek.
<?phpif ( !defined( '_PS_VERSION_' ) )exit;class MyModule extends Module{ public function __construct() { $this->name = 'mymodule'; $this->tab = 'Test'; $this->version = 1.0; $this->author = 'Firstname Lastname'; $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l( 'My module' ); $this->description = $this->l( 'Description of my module.' ); } 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(); }}?>