including templates from other dir
| From: | Sergey Egorov | Date: | Tue, 20 Feb 2001 23:10:56 +0000 |
| Subject: | including templates from other dir | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-166@lists.php.net to get a copy of this message | ||
Hello !
Ok, today I run into the problem:
1. I need to have many templates
directories (to share common templates with others for example)
2. I want to include these shared templates via {include
file="template.tpl"}
3. It won't work as I cannot point Smarty to use another templates dir
in template while including.
4. Possible solution: 1) if I supply relatative path to my included
template then switch templates path to this relatative path while
including or 2) add compile_dir TAG or something in include statement
I think that not only me run into this problem and I hope this will be
released in the next vesrion. Thanks.
--
Best regards,
Sergey mailto:esv@37.ru