diff --git a/docs/en/programmers/advanced-features/advanced-features-postfilters.xml b/docs/en/programmers/advanced-features/advanced-features-postfilters.xml
index 30405c13..fd0f3570 100644
--- a/docs/en/programmers/advanced-features/advanced-features-postfilters.xml
+++ b/docs/en/programmers/advanced-features/advanced-features-postfilters.xml
@@ -6,7 +6,8 @@
Template postfilters are PHP functions that your templates are ran through
after they are compiled. Postfilters can be either
registered or loaded
- from the plugins directory by using
+ from the plugins directory
+ by using
load_filter() function or by
setting
$autoload_filters
@@ -26,8 +27,8 @@ function add_header_comment($tpl_source, &$smarty)
}
// register the postfilter
-$smarty->register_postfilter("add_header_comment");
-$smarty->display("index.tpl");
+$smarty->register_postfilter('add_header_comment');
+$smarty->display('index.tpl');
?>
]]>
@@ -41,6 +42,13 @@ $smarty->display("index.tpl");
]]>
+
+ See also register_postfilter(),
+ prefilters
+ and
+ load_filter()
+
+
/U","",$tpl_source);
+ return preg_replace("//U",'',$tpl_source);
}
// register the prefilter
-$smarty->register_prefilter("remove_dw_comments");
-$smarty->display("index.tpl");
+$smarty->register_prefilter('remove_dw_comments');
+$smarty->display('index.tpl');
?>
]]>
-
- This will remove all the comments in the template source.
-
+
+ See also register_prefilter(),
+ postfilters
+ and
+ load_filter()
+