Re: different template paths

From: Date: Tue, 17 Jul 2001 13:14:38 +0000
Subject: Re: different template paths
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1177@lists.php.net to get a copy of this message
> My problem is the include(). These general templates do not reside in > the same directory as the actual content templates, and so smarty > will not find them. i must reply to myself, because of RTFM: i think this should do it... {* from within Smarty template *} {include file="file:/usr/local/share/templates/navigation.tpl"} But i want to start a little discussion about it, because i program also in java and there i use Webmacro as template engine, which is around for some time now. there you can assign multiple paths for $TEMPLATE_DIR. This way i could assign my general_template_path plus additional ones. THis way i dont need to pass the path as include argument each time i use it. So how about an array for this smarty attribute? flames directly to loge@mail.com :)))) ----------------------- Marc Logemann Morelogs GmbH & Co. KG Chief Software Architect -----------------------

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