|
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 |
PSiegmund Smarty Rookie
Joined: 04 May 2003 Posts: 6 Location: Berlin, Germany
|
Posted: Thu May 08, 2003 7:56 pm Post subject: Prefilter |
|
|
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 |
|
|
|
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
|