Postfilters
Template postfilters are PHP functions that your templates are ran through
- after they are compiled. Postfilters can be either
+ after they are compiled. Postfilters can be either
registered or loaded
from the plugins directory by using
load_filter() function or by
@@ -22,7 +22,7 @@
// put this in your application
function add_header_comment($tpl_source, &$smarty)
{
- return ";\n\" ?>;\n".$tpl_source;
+ return "\n\"; ?>\n".$tpl_source;
}
// register the postfilter