Changing template_dir
| From: | Uros Gruber | Date: | Thu, 27 Jun 2002 14:06:02 +0000 |
| Subject: | Changing template_dir | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5067@lists.php.net to get a copy of this message | ||
Hi!
i have some problem and i don't know how to solve this.
for example i ser template_dir to some directory, and
everything works fine.
but then i have on same page admin/ directory and i want to
specify that template_dir is now /www/page/tpl/admin, so i
can have separated tpls for administration.
But if i have force_compile disabled smary show me for
example index.tpl from directory /www/page/tpl and not from
admin/ in that dir.
but if i then delete everything from compiled location it
works but then again in normal web (not admin) it shows
index.tpl from that admin dir.
If i use force_compile enable it works OK.
What i wan't to know is if it's possible that smarty could
check from what dir you're requesting files, because my
index.tpl files are not the same size and not the same
timestamp.
Is this bug or am I missing something.
I use version 2.1.1
--
bye,
Uros