musicmaster Posted September 14, 2014 Share Posted September 14, 2014 Never having been a fan of object oriented programming I finally am getting serious about writing a Prestashop module. And I am immediately running into obstacles. I am writing a configuration routine (that is: back office) that uses Javascript. Of course I could just throw the Javascript into my code or throw a "<script src=" somewhere in the html. But I try to do it according to protocol. So it seemed to me that "hookDisplayBackOfficeHeader()" is the right place to write "$this->context->controller->addJS($this->_path.'myscript.js');". Wrong... It looks like the routine is not even called. So where should I put my code instead? 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