|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
gonto Guest
|
Posted: Wed Nov 18, 2009 5:23 pm Post subject: Post-Filter and the current Template File |
|
|
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
|
Posted: Wed Nov 18, 2009 5:54 pm Post subject: |
|
|
{$smarty.current_dir}/{$smarty.template} |
|
Back to top |
|
gonto Guest
|
Posted: Wed Nov 18, 2009 5:57 pm Post subject: |
|
|
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
|
Posted: Wed Nov 18, 2009 6:29 pm Post subject: |
|
|
$smarty->_current_file has been made available in the beta 4 release. |
|
Back to top |
|
|
|
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
|