Templates, help!
| From: | Birgir Stefansson | Date: | Thu, 25 Sep 2003 15:06:09 +0000 |
| Subject: | Templates, help! | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-8043@lists.php.net to get a copy of this message | ||
Hey everyone.
I am setting up templates for the system I'm working on and was
wondering how people organized their templates and how they used them.
I'm a little confused on how to setup the templates .. wether I should
use just one template with a lot of blocks that I would parse and render
depending on some criteria I set (ie rendering a menu for users logged
in, not for users not logged in) or if I should have multiple templates
to do this.
ATM I think it would be better if I could keep everything in one
template since it's just blocks I want displayed depending on who you
are. Am I on the right path or am I doing this the wrong way ?
I'm using a lot of CSS and passing paths to images like
({var_imgpath}/left_bg.gif) and therefore have to keep style definitions
inside the template and can't put it all in a separate .css file. Would
you consider this malpractice ?
I'm using HTML_Template_Sigma to render.
Hoping for a reply :)
Birgir