Jump to content

[SOLVED]I have create my personal module what is it wrong?


giuly

Recommended Posts

I copied from another module and Ichange words, etc
I 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

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...