Madsex Posted October 7, 2015 Share Posted October 7, 2015 Salve, fino a qualche giorno fa funzionava perfettamente, adesso non so perchè, un modulo che ho creato io non visualizza più il .tpl a lui associato. Tutto il resto viene chiamato, js e css ma il tpl proprio no. Cosa curiosa che da questo stesso modulo ne ho ricavato un'altro ( cambiando le dovute parti di codice ), che invece funziona benissiom, potreste darmi una mano? Dove sbaglio? Ecco il codice: <?php if (!defined('_PS_VERSION_')) exit; require(dirname(__FILE__) . '/gc_shipping_alert.class.php'); class gc_shipping_alert extends Module { private $page_name = ''; public function __construct() { $this->name = 'gc_shipping_alert'; // il nome del modulo (lo stesso del file principale) $this->tab = 'content_management'; // sezione in cui va inserito $this->version = 0.1; $this->author = ''; $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l('Modulo Cartello Mattarello'); $this->description = $this->l('descrizione'); $this->context->controller->addCSS(($this->_path).'gc_shipping_alert.css'); $this->context->controller->addJS(($this->_path).'js/gc_shipping_alert.js'); } public function install() { if (!parent::install() || !$this->registerHook('displayHome') || !$this->registerHook('Mattarello') ) return false; return true; } public function uninstall() { if (!parent::uninstall() || !$this->unregisterHook('displayHome') || !$this->unregisterHook('Mattarello') ) return false; return true; } public function hookMattarello($params) { return $this->display(__FILE__, 'gc_shipping_alert.tpl'); } } ?> Grazie in anticipo! 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