1
Hail! I have a system with template that I mounted on PHP represented by the following structure:
require("header.php");
require("content.php"); //carregado dinamicamente via GET
require("footer");
Everything works well, but I have to manage the CSS and JS of each content. Since the CSS this inserted in header.php and the JS in footer.php, what would be the best way to insert the specific files of each content? The intention would be to load the scripts referring to content specific, but I have problems mainly with JS when I try to insert them directly into the content. I thank you for your strength!
I am currently using a similar solution. I have to create three files with the same name, however different extensions (php content., content js., content css.). My question is how performance and safety are compromised.
– Eric Coutinho