Website templating schemes

From: Date: Tue, 26 Aug 2003 16:26:13 +0000
Subject: Website templating schemes
Groups: php.general 
Request: Send a blank email to php-general+get-160797@lists.php.net to get a copy of this message
I'm trying to make a PHP-backed website, and I'm trying to decide between two templating schemes: 1. define 2 php template files: header.php, footer.php. in index.php, require header.php, output content, require footer.php 2. define a php template file and a local page file. index.php defines body() and crequires template.php. template.php prints the header, calls body() to print the content, and and prints the footer. I'm currently using the second method, but I've only seen the first used elsewhere. Is there a reason that #1 is better than #2 (or is anything else even better than that?)? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3@msstate.edu]

« previous php.general (#160797) next »