Re: Quick Question

From: Date: Mon, 24 Mar 2003 17:04:01 +0000
Subject: Re: Quick Question
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1005@lists.php.net to get a copy of this message
On Mon, 24 Mar 2003 11:44:50 -0300, Luis wrote: > 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? I would extend the smarty class and just use is_file to decide what directory to use.... There are some examples of extending smart functions in the archives Regards -- Tom Sommer, Denmark www.tsn.dk - www.dreamcoder.dk

« previous php.smarty.dev (#1005) next »