Jump to content

fichier JavaScript dans un controller


Recommended Posts

Bonsoir,

J'aimerais charger un fichier JS dans un controller, mais quand je met le code :

$this->context->controller->addJS($this->_path.'views/js/accordeon.js');

j'obtiens cette erreur :

Notice: Trying to get property 'controller' of non-object

Si quelqu'un à la solution je suis preneur

Merci beaucoup :D

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...