Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Installing a javascript on all pages

Installing a javascript on all pages: Whats the best method to add a javascript <script src="..."></script> call to all my pages/ page loads?

Make it part of your base template. Presumably you've got something like a base.phtml that all you other pages extend. Just throw the script tag in there.



214

Thank you!



22.4k
Accepted
answer

Information how to include css & js in phalcon https://docs.phalcon.io/3.4/en/assets.html

Glad to help. If one of the answers solved your problem, please [ Accept Answer ] so the title gets updated with "[ SOLVED ]"