Re: [SMARTY-DEV] Quick Question
| From: | Monte Ohrt | Date: | Mon, 24 Mar 2003 17:32:32 +0000 |
| Subject: | Re: [SMARTY-DEV] Quick Question | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1006@lists.php.net to get a copy of this message | ||
if($smarty->template_exists("$user/foo.tpl"))
$smarty->display("$user/foo.tpl")
else
$smarty->display('foo.tpl');
On Mon, 2003-03-24 at 08:44, luis wrote:
> Hi,
>
> Let's say I have a
> $smarty->display('foo.tpl');
> I want display to search in templates/$user/foo.tpl and if the template
> is not found there to search in templates/foo.tpl
> Which is the best way to do it?
>
> Thanks for your answer.
> Luis
--
Monte Ohrt <monte@ispi.net>