RE: [SMARTY] 'Default' template directory?
| From: | Andreas Goetz | Date: | Fri, 27 Feb 2004 08:28:19 +0000 |
| Subject: | RE: [SMARTY] 'Default' template directory? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11031@lists.php.net to get a copy of this message | ||
That's exactly what I'm looking for :) template_exists is a solution,
thanks- but this is perfect.
Cheers,
Andi
> -----Original Message-----
> From: boots [mailto:jayboots@yahoo.com]
> Sent: Donnerstag, 26. Februar 2004 19:12
> To: Andreas Goetz; 'Smarty'
> Subject: Re: [SMARTY] 'Default' template directory?
>
> --- Andreas Goetz <cpuidle@gmx.de> wrote:
> > I think what I'm looking for is an array of template directories,
> > providing the search order?
>
> It is not officially supported, but template directory arrays
> are recognized. So $smarty->templates_dir = array('path1',
> 'path2'); searches path1 and then path2 for templates. As I
> said, it is not officially supported, but a few do use it
> (like me!) and it appears to "work" on all platforms.
>
> __________________________________
> Do you Yahoo!?
> Get better spam protection with Yahoo! Mail.
> http://antispam.yahoo.com/tools
>