Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Templatenamen ausgeben lassen

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
GELight
Smarty n00b


Joined: 08 Mar 2012
Posts: 4

PostPosted: Tue Jul 02, 2013 8:09 pm    Post subject: Templatenamen ausgeben lassen Reply with quote

Hallo alle zusammen,

Ich suche hier schon eine geraume Zeit ohne Erfolg aber gibt einem denn Smarty nicht irgendwie die Möglichkeit, dass man über eine Konfiguration oder dergleichen angeben kann, dass er "vor" bzw. "nach" dem zu rendernden Template den Pfad und Namen zum aktuellen Template mit rendert? Sowas wie:

Code:

<!-- my/path/myTemplate.tpl -->
...
   <!-- another/path/myTemp.tpl -->
      ...
   <!-- end - another/path/myTemp.tpl -->
...
<!-- end - my/path/myTemplate.tpl -->



Gruß Mario[/code]
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4587
Location: Hamburg / Germany

PostPosted: Wed Jul 03, 2013 2:27 pm    Post subject: Reply with quote

See http://www.smarty.net/docs/en/language.variables.smarty.tpl#language.variables.smarty.template

{$smarty.current_dir} and {$smarty.template}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP