PHP Included files writing their own content from Importer values ...
- by Adrian
Hello,
I have a index.php file that will include several external files:
"content/templates/id1/template.php"
"content/templates/id2/template.php"
"content/templates/id3/template.php"
etc.
All these files are loaded dynamically into index.php (it reads all folders inside "templates" directory and then includes every "template.php" file).
I want to make "template.php" to have the same code in all the "id1,id2,id3" folders, BUT to load values from index.php depending in which folder it stays..
How can I do that?
Thank You!