[SOLVED] {template variable} -> include file
Posted: Fri Jun 25, 2004 8:30 am
Hello there,
I am, yes, still working on my site redesign. I am planning for it to be done in one week!
However, I decided to go with a templating system. I now have header.php and footer.php, and a seperate script replaces all of the varying variables, such as:
{title}
{randQuote}
{etc}
with the appropriate PHP Variable.
However, my menu is dynamic, with a quite elaborate script. And the way the templating system is set up, I can not simply put an include call in header and/or footer.php.
What I need to do is have a seperate script for the menu, e.g., menu.php. When the templating system finds {menu} in header.php, it needs to replace that call with the output generated by menu.php... do you understand?
I hope I have made it clear enough.
If you do not understand, please state as such and I will do my best to clarify.
- The Monkey
I am, yes, still working on my site redesign. I am planning for it to be done in one week!
However, I decided to go with a templating system. I now have header.php and footer.php, and a seperate script replaces all of the varying variables, such as:
{title}
{randQuote}
{etc}
with the appropriate PHP Variable.
However, my menu is dynamic, with a quite elaborate script. And the way the templating system is set up, I can not simply put an include call in header and/or footer.php.
What I need to do is have a seperate script for the menu, e.g., menu.php. When the templating system finds {menu} in header.php, it needs to replace that call with the output generated by menu.php... do you understand?
I hope I have made it clear enough.
If you do not understand, please state as such and I will do my best to clarify.
- The Monkey