On 1/6/2014 at 4:09 PM, vekia said:it's related to back office, not front
public function hookBackOfficeFooter($params){ $this->context->controller->addCSS('myfile.css'); }
@vekia I dit it by calling
$this->context->controller->addJS(
_PS_MODULE_DIR_ . '/mymodule/views/js/admin/main.js',
'all'
);
in the function named ”displayForm” instead of your solution in order to preserve perfomance.
I do not need it loaded outside of the module configuration form.
My 2c 😎