RE: [SMARTY-DEV] Quick Question

From: Date: Mon, 24 Mar 2003 18:11:23 +0000
Subject: RE: [SMARTY-DEV] Quick Question
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1007@lists.php.net to get a copy of this message
Ok, ok I deserve it :-) The idea is that I have a zillion $smarty->display('foo.tpl'); lines and I don't want to change them, I want display to search for templates first in templates/$user/template.tpl and then in templates/$user/template.tpl Which is the best approach? Is there any way to change the default file: resource? Other method? Luis -----Original Message----- From: Monte Ohrt [mailto:monte@ispi.net] Sent: Monday, March 24, 2003 2:33 PM To: luis Cc: Smarty Dev Subject: Re: [SMARTY-DEV] Quick Question 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> -- Smarty Development Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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