Jump to content

How to access php value inside an external js file which is hooked in header?


prestashop_newuser

Recommended Posts

I am creating a custom module. In that module I want to use my php variable inside the js file. How can I access the value in js file. I don't want to pass the variable to smarty file. The js file is hooked in the header. So can someone tell me how to pass the php value to external js file which is hooked in the header?

 

Any help and suggestion will be really appreciable. Thanks

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