Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
$template object in filter (need template-path)

 
Post new topic   Reply to topic    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
jafar
Smarty n00b


Joined: 26 Mar 2010
Posts: 2

PostPosted: Fri Mar 26, 2010 9:22 pm    Post subject: $template object in filter (need template-path) Reply with quote

own prefilter-functions only have 2 params ($tpl_source, &$smarty).

I would like to know the full file-path of the template in the filter.
Maybe you can add a 3 parameter to filter functions $template:
($tpl_source, &$smarty, &$template).

Thank you

P.S.
Smarty 3 rocks


Last edited by jafar on Wed May 05, 2010 11:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Mon Mar 29, 2010 4:15 pm    Post subject: Reply with quote

The template object is passed now to filters as third parameter. This is in the SVN now.
Back to top
View user's profile Send private message
jafar
Smarty n00b


Joined: 26 Mar 2010
Posts: 2

PostPosted: Wed Mar 31, 2010 1:16 pm    Post subject: Reply with quote

I tested, it works for me. 10x thx
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Feature Requests 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