[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    [SMARTY] Getting the current template path
From:       Gabriel Birke <birke () kontor4 ! de>
Date:       2003-06-19 15:54:51
[Download RAW message or body]

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


-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic