How to append a variable to all the javascript files before they are loaded in a page in cake php? -
I need to add a variable to all javascript files, while they are automatically included in a page to load the page Before the variable should be added. The following is an example of what I need. var scriptfile = 'http: //www.whatever com / myjs.js? Rnd = '+ revision_number' I need to use cake PHP I I will extend the Javascript Helper, and I will write my own custom method to attach the string, then call it the new method in my layout. The link is the method you probably want to overwrite if you do not make any custom