Re: [SMARTY] Smarty 2.6.0 RC1 - Change in path handling
| From: | Mark Rogers | Date: | Wed, 13 Aug 2003 10:15:59 +0000 |
| Subject: | Re: [SMARTY] Smarty 2.6.0 RC1 - Change in path handling | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10052@lists.php.net to get a copy of this message | ||
> It's not necessairy to handle multiple template
> directories in an array.
Granted there are other options, but the array approach is the most elegant
(imho) and worked previously (albeit undocumented), and is simple to restore
to functionality now.
Internally, Smarty turns the path into an array so that it can append
alternatives (for example the current directory, '.') and loop through them.
I use this functionality to allow me to write re-usable code which relies on
templates. I create standard templates, and then where necessary create
tailored templates for specific jobs. For example, I have a templates 404
error page, which by default throws my own 404 page up, but if desired the
template designer can create his own 404.tpl which better suits the sites
needs.
Mark Rogers,
More Solutions Ltd