registerFilter()
dynamically register filters
Description
void
registerFilter
string
type
mixed
callback
Use this to dynamically register filters to operate on a templates. It uses the following parameters:
NOTE.PARAMETER.FUNCTION
A prefilter runs through the template source before it gets compiled. See template prefilters for more information on how to setup a prefiltering function.
A postfilter runs through the template code after it was compiled to PHP. See template postfilters for more information on how to setup a postfiltering function.
A outputfilter operates on a template\'s output before it is displayed. See template output filters for more information on how to set up an output filter function.
See also unregisterFilter()
,
loadFilter()
,
$autoload_filters
, template pre
filters template post
filters template output
filters section.