Re: [SMARTY] Multiple directories for templates.

From: Date: Wed, 14 Aug 2002 09:43:45 +0000
Subject: Re: [SMARTY] Multiple directories for templates.
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5696@lists.php.net to get a copy of this message
On 13 sierpnia 2002 at 16:30:07 Garland foster <garland_foster@salutia.com> wrote: > Is there any way to make smarty look up for templates in more than > one directory? I have some templates generic to several applications > and then application specific templates the directory tree is like > this: > /foo/Smarty > /templates > /app1 > /app1/templates > /app2 > /app2/templates It will not work. Change this structure for /foo/Smarty /templates /app1 /templates /app2 /templates Define main tpl root folder for smarty templates: $smarty->template_dir = "/foo/Smarty/templates"; And use the following syntax: $smarty->display('appl1/templates/foo1.tpl') for appl1 or $smarty->display('appl2/templates/foo2.tpl') for appl2 -- Johann

« previous php.smarty.general (#5696) next »