Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Post-Filter and the current Template File

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
gonto
Guest





PostPosted: Wed Nov 18, 2009 5:23 pm    Post subject: Post-Filter and the current Template File Reply with quote

Hello,

I use post-filters and within one of those filters i need the name / path of the template, which is currenty compiled. In Smarty 2 i used the variable "$smarty->_current_file", but how is it possible with smarty 3?

Greetings
Back to top
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Nov 18, 2009 5:54 pm    Post subject: Reply with quote

{$smarty.current_dir}/{$smarty.template}
Back to top
View user's profile Send private message Visit poster's website
gonto
Guest





PostPosted: Wed Nov 18, 2009 5:57 pm    Post subject: Reply with quote

Thank you for your reply.

The problem is, that i need the name / path within the postfilter-(php)-function and not within a template...
Back to top
U.Tews
Administrator


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

PostPosted: Wed Nov 18, 2009 6:29 pm    Post subject: Reply with quote

$smarty->_current_file has been made available in the beta 4 release.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3 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