RE: [SMARTY-DEV] How to modify the Smartytemplate loding policy
| From: | luis | Date: | Tue, 25 Mar 2003 13:44:55 +0000 |
| Subject: | RE: [SMARTY-DEV] How to modify the Smartytemplate loding policy | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1019@lists.php.net to get a copy of this message | ||
Why would I change {include} ? The application will then be hard to
maintain because it's logical to use {include} to do {includes} In some
point {include} must share some code with {fetch} to get a template from
the source. I just want to know where is that intersecting code to
change it and load templates from one dir or another.
-----Original Message-----
From: Jimmy Harlindong [mailto:jimmy@harlindong.com]
Sent: Tuesday, March 25, 2003 10:13 AM
To: Smarty-Dev
Subject: Re: [SMARTY-DEV] How to modify the Smartytemplate loding policy
How about using a custom function?
{insert}
or define a custom tag.
----- Original Message -----
From: "luis" <luis@fuegolabs.com>
To: "'luis'" <luis@fuegolabs.com>; "'Jason Sweat'"
<sweatjejm@mchsi.com>; <aztek@box.sk>
Cc: "'Smarty Dev'" <smarty-dev@lists.php.net>
Sent: Tuesday, March 25, 2003 10:19 PM
Subject: [SMARTY-DEV] How to modify the Smartytemplate loding policy
> Well, I can answer myself, no.
> If I have
> display('foo.tpl');
> and foo.tpl {includes file='header.tpl'}
> I need to look BOTH for foo.tpl and header.tpl in templates/$user and
if
> they are not found there in templates/
> If I redefine fetch then foo.tpl can be checked but fetch is not
called
> for the included header.tpl template.
> Ideas?
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php