best practice - combining script output
| From: | Greg Elisara | Date: | Sat, 24 Aug 2002 00:44:19 +0000 |
| Subject: | best practice - combining script output | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5820@lists.php.net to get a copy of this message | ||
hi, what is the best practice for combining the content of several scripts
of output to one template? - e.g. homepage is setup with header and footer
(generally just templates), main content split into 3 columns and all comes
from a database - column 1 has navigation stuff, column 2 has main content,
and column 2 has associated content.
i was considering writing separate php scripts with templates for each
section of the main content e.g. nav.php (uses nav.tpl), stuff.php (uses
stuff.tpl), assoc_stuff.php (uses assoc_stuff.tpl), and then combining them
into an overall wrapper for the page using include() in the wrapper.php
file.
however, i am pretty new to this stuff, especially smarty, and i would like
to get some feedback on what best practices are (i see there are
include_php() and include() functions for smarty too).
many thx. greg.