I am very new to Expression Engine .
I have created a module , i want to know how do i load/run it in the current template .
I want to add some custom javascript to the front end website , and i know that i have to use
$this->EE->cp->add_to_head('myscript'); or any other function
But i don't know where should i call this function . I tried to call it in the mod.my_module.php in construct function but nothing happened.
Is there something i am missing ?