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    [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to