I'm developing a module but I'm stuck with a problem that don't let me continue. I would be grateful if somebody could help me.
I want that the module insert a javascript file and an CSS file in the HEADER section of the resultant HTML. So I have defined in the module the following function:
function hookHeader($params)
{
return $this->display(__FILE__, 'contentslider-header.tpl');
}
function hookHome($params)
{
return $this->display(__FILE__, 'contentslider.tpl');
}
The content of the file contentslider.tpl is inserted inside the BODY section, but the content of the file contentslider-header.tpl is not inserted. It seems that the function hookHeader is never called!!! I have been studying other modules to see if I'm doing something wrong, but I think that the module is OK.
I've attached the module, so you can see the problem.
Than you very much in advance,
Jose Luis Monteagudo
Attached File(s)
contentslider.zip (2bytes)
Number of downloads: 120



Vous parlez français ?









