RE: [PHP] Website templating schemes

From: Date: Tue, 26 Aug 2003 20:51:15 +0000
Subject: RE: [PHP] Website templating schemes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160852@lists.php.net to get a copy of this message
Quoting "Chris W. Parker" <cparker@swatgear.com>: > And I completely don't understand Option #2. What does body() do and > why > do you call it? Can you show some pseudo code to help us (or maybe > it's > just me) understand how Option #2 works? Browser calls index.php -- #index.php programming tasks...... $results = results of above; function body() { # info, content, etc. global $results; echo $results; } require "template.php"; -- -- #template.php prints header stuff.... body(); prints footer stuff.... -- Does that make any sense? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3@msstate.edu]

« previous php.general (#160852) next »