Jump to content

problems creating a new module


ignaciofarre

Recommended Posts

Hello...

I create a new module, but I don't see...

 

The folder is mymodule, and de file mymodule.php

 

 

<?php
 
if (!defined('_PS_VERSION_'))
    exit;
 
class MyModule extends Module {
 
    public function __construct() {
        $this->name = 'mymodule';
        $this->tab = 'others';
        $this->version = '1.0';
        $this->author = 'Ignacio Farre';
        $this->need_instance = 0;
        $this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.6');
        $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');
    }
 
}
 
 
 
 Please I need to create a new module to start programing...

post-620779-0-04855700-1407232741_thumb.png

Edited by ignaciofarre (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...