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

Prefilter

 
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 -> General
View previous topic :: View next topic  
Author Message
PSiegmund
Smarty Rookie


Joined: 04 May 2003
Posts: 6
Location: Berlin, Germany

PostPosted: Thu May 08, 2003 7:56 pm    Post subject: Prefilter Reply with quote

Hi!

Can anyone help me with the definition of a prefilter. I found this prefilter:
Code:
function smarty_prefilter_showinfoheader($source, &$smarty)
 {
   return '<!-- Smarty '.$smarty->_version.' '.strftime("%Y-%m-%d %H:%M:%S %Z").' -->'."\n\n".$source;
 }
and I wanted to use it. After call the
Code:
$smarty->load_filter('pre','showinfoheader');
and checking the sourcecode, I found out, that the comment is on the bottom of my document and not like expected on the top.
What is my mistake? If it would work it would be very nice.

Please help me.
Back to top
View user's profile Send private message Visit poster's website
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 -> 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