Re: [SMARTY] Changing template_dir
| From: | Monte Ohrt | Date: | Thu, 27 Jun 2002 14:06:31 +0000 |
| Subject: | Re: [SMARTY] Changing template_dir | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5068@lists.php.net to get a copy of this message | ||
That is because your template is named the same in both directories, so they get the same id. Any time you switch your $template_dir, be sure to pass different compile id's to each one.
Uros Gruber wrote:
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-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.