cvs: smarty /docs/en/designers/language-builtin-functions language-function-php.xml
[email protected] ("Peter 'Mash' Morgan") Tue, 28 Mar 2006 01:23:16 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvspete_morgan1143508996@cvsserver> |
pete_morgan Tue Mar 28 01:23:16 2006 UTC
Modified files:
/smarty/docs/en/designers/language-builtin-functions
language-function-php.xml
Log:
another example
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/designers/language-builtin-functions/language-function-php.xml?r1=1.9&r2=1.10&diff_format=u
Index: smarty/docs/en/designers/language-builtin-functions/language-function-php.xml
diff -u smarty/docs/en/designers/language-builtin-functions/language-function-php.xml:1.9 smarty/docs/en/designers/language-builtin-functions/language-function-php.xml:1.10
--- smarty/docs/en/designers/language-builtin-functions/language-function-php.xml:1.9 Tue Mar 28 01:15:34 2006
+++ smarty/docs/en/designers/language-builtin-functions/language-function-php.xml Tue Mar 28 01:23:16 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<sect1 id="language.function.php">
<title>{php}</title>
<para>
@@ -38,14 +38,20 @@
if($foo == $bar){
echo 'This will come out in the template';
}
-
$this->assign('varX','Strawberry');
-
{/php}
<strong>{$varX}</strong> is my fav ice cream
]]>
</programlisting>
- </example>
+ <para>The following seriously NOT recommended as its in the template scope</para>
+<programlisting
+<![CDATA[
+{php}
+print_r($some_array);
+{/php}
+]]>
+</programlisting>
+</example>
<para>
See also