cvs: smarty /docs/en/programmers/advanced-features advanced-features-outputfilters.xml
[email protected] ("Peter 'Mash' Morgan") Sat, 18 Feb 2006 12:12:48 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvspete_morgan1140264768@cvsserver> |
pete_morgan Sat Feb 18 12:12:48 2006 UTC
Modified files:
/smarty/docs/en/programmers/advanced-features
advanced-features-outputfilters.xml
Log:
more linking :-)
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/programmers/advanced-features/advanced-features-outputfilters.xml?r1=1.2&r2=1.3&diff_format=u
Index: smarty/docs/en/programmers/advanced-features/advanced-features-outputfilters.xml
diff -u smarty/docs/en/programmers/advanced-features/advanced-features-outputfilters.xml:1.2 smarty/docs/en/programmers/advanced-features/advanced-features-outputfilters.xml:1.3
--- smarty/docs/en/programmers/advanced-features/advanced-features-outputfilters.xml:1.2 Sun Nov 21 02:04:01 2004
+++ smarty/docs/en/programmers/advanced-features/advanced-features-outputfilters.xml Sat Feb 18 12:12:48 2006
@@ -1,21 +1,25 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<sect1 id="advanced.features.outputfilters">
<title>Output Filters</title>
<para>
- When the template is invoked via display() or fetch(), its output can be
- sent through one or more output filters. This differs from postfilters
+ When the template is invoked via
+ <link linkend="api.display">display()</link> or
+ <link linkend="api.fetch">fetch()</link>, its output can be
+ sent through one or more output filters. This differs from
+ <link linkend="advanced.features.postfilters">postfilters</link>
because postfilters operate on compiled templates before they are saved to
- the disk, and output filters operate on the template output when it is
+ the disk, wheras output filters operate on the template output when it is
executed.
</para>
<para>
Output filters can be either
<link linkend="api.register.outputfilter">registered</link> or loaded
- from the plugins directory by using
+ from the
+ <link linkend="variable.plugins.dir">plugins directory</link> by using the
<link linkend="api.load.filter">load_filter()</link> function or by
- setting
+ setting the
<link linkend="variable.autoload.filters">$autoload_filters</link>
variable. Smarty will pass the template output as the first argument,
and expect the function to return the result of the processing.
@@ -35,8 +39,8 @@
}
// register the outputfilter
-$smarty->register_outputfilter("protect_email");
-$smarty->display("index.tpl");
+$smarty->register_outputfilter('protect_email');
+$smarty->display('index.tpl');
// now any occurrence of an email address in the template output will have
// a simple protection against spambots
@@ -44,6 +48,14 @@
]]>
</programlisting>
</example>
+ <para>
+ See also
+ <link linkend="api.register.outputfilter">register_outpurfilter()</link>,
+ <link linkend="api.load.filter">load_filter()</link>,
+ <link linkend="variable.autoload.filters">$autoload_filters</link>
+ <link linkend="advanced.features.postfilters">postfilters</link> and
+ <link linkend="variable.plugins.dir">plugins directory</link>.
+ </para>
</sect1>
<!-- Keep this comment at the end of the file
Local variables: