giuly Posted January 19, 2011 Share Posted January 19, 2011 I copied from another module and Ichange words, etcI have created bannermiei.php <?php class bannermiei extends Module { private $_html = ''; function __construct() { $this->name = 'bannermiei'; $this->tab = 'Bannermiei'; $this->version = '1.0'; parent::__construct(); $this->displayName = $this->l('Blocco banner miei'); $this->description = $this->l('Aggiunge un blocco per i banner'); } public function install() { if (!parent::install() OR !$this->registerHook('Home') OR !$this->registerHook('updateOrderStatus') OR !ProductSale::fillProductSales()) return false; return true; } function hookHome($params) { global $smarty; return $this->display(__FILE__, 'bannermiei.tpl'); } } ?> and bannermiei.tpl <!-- MODULE bannermiei --> {l s='Pubblicita\'' mod='bannermiei'} {assign var='liHeight' value=184} <!-- /MODULE bannermiei --> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now