cvs: smarty /docs/en/programmers plugins.xml
"Mehdi Achour" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsdidou1080524960@cvsserver> |
didou Sun Mar 28 20:49:20 2004 EDT
Modified files:
/smarty/docs/en/programmers plugins.xml
Log:
more CDATAs
http://cvs.php.net/diff.php/smarty/docs/en/programmers/plugins.xml?r1=1.1&r2=1.2&ty=u
Index: smarty/docs/en/programmers/plugins.xml
diff -u smarty/docs/en/programmers/plugins.xml:1.1 smarty/docs/en/programmers/plugins.xml:1.2
--- smarty/docs/en/programmers/plugins.xml:1.1 Sun Mar 28 10:15:38 2004
+++ smarty/docs/en/programmers/plugins.xml Sun Mar 28 20:49:20 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<chapter id="plugins">
<title>Extending Smarty With Plugins</title>
<para>
@@ -122,8 +122,13 @@
(as is the case with some plugins bundled with Smarty), then the proper
way to load the needed plugin is this:
</para>
- <programlisting>
-require_once $smarty->_get_plugin_filepath('function', 'html_options');</programlisting>
+ <programlisting role="php">
+<![CDATA[
+<?php
+require_once $smarty->_get_plugin_filepath('function', 'html_options');
+?>
+]]>
+ </programlisting>
<para>
As a general rule, Smarty object is always passed to the plugins
as the last parameter (with two exceptions: modifiers do not get
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php