Re: Website templating schemes

From: Date: Tue, 26 Aug 2003 21:11:35 +0000
Subject: Re: Website templating schemes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-160853@lists.php.net to get a copy of this message
> With method 2 it seems like your template file would become redundant > because every one of them would have to contain the header and footer > code. > > I would use 3 template files, header.php, footer.php, and > body_index.php > > index.php would: > > 1. PERFORM LOGIC > 2. include header > 3. include body > 4. include footer > > Then, all you have to do is make new body_XXX.php files for each page > on > your site and the header/footer content is contained in one place. Ok, wait, I'm having a hard time understanding this... the browser would request the same index.php every time? with server.com/index.php?query_string? And the query string would determine the body_XXX.php to be included? Right now I have it set up so that a different index.php is requested each time, but calls the same template.php. -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3@msstate.edu]

« previous php.general (#160853) next »