Jump to content

hookDisplayBackOfficeHeader() not called - and now?


musicmaster

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...