View Single Post
Old 02-01-2004, 09:44 AM   #1
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Template Customization Using PHP Objects

I have a problem that I don't think is quite covered in all the threads I've looked at, although this thread looks like it has something close to what I'm looking for.

My web page header and footer are defined in a PHP class called Navigation. I pass a number of variables to the methods within the class, then have the following code that places header and footer, respectively, on the page:
Code:
echo $Navigation->getHeader();

echo $Navigation->getFooter();
How can I incorporate a PHP object into my template so that I don't have to maintain it in two separate places, one for the rest of my site and the other for phpDig?

<added>
For clarification, my header includes everything from the <html> tag through the <body> tag.
</added>

Last edited by vinyl-junkie; 02-01-2004 at 09:51 AM.
vinyl-junkie is offline   Reply With Quote