Getting the current template path
| From: | Gabriel Birke | Date: | Thu, 19 Jun 2003 15:54:51 +0000 |
| Subject: | Getting the current template path | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9735@lists.php.net to get a copy of this message | ||
Hello!
Now that I have more than 100 templates i want to put them into separate folders inside the template dir.
Some templates will be moved around so I don't want to hard-code the template paths into the include functions in the templates.
I want something like
{include file=$smarty.some_function_that_returns_path_of_current_template+"admin_main.tpl"}
instead of
{include file="admin/admin_main.tpl"}
Is something like this possible?
With best regards
Gabriel Birke
--
KONTOR4_Neue Medien
Nelkenstrasse 3
31515 Wunstorf
Germany
+49 5031-955234
+49 5031-955231
mailto:birke@kontor4.de
http://www.kontor4.de