cvs: smarty /docs/en/designers/language-variables language-variables-smarty.xml
[email protected] ("Peter 'Mash' Morgan") Tue, 28 Mar 2006 01:44:26 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvspete_morgan1143510266@cvsserver> |
pete_morgan Tue Mar 28 01:44:26 2006 UTC
Modified files:
/smarty/docs/en/designers/language-variables
language-variables-smarty.xml
Log:
tweek
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/designers/language-variables/language-variables-smarty.xml?r1=1.13&r2=1.14&diff_format=u
Index: smarty/docs/en/designers/language-variables/language-variables-smarty.xml
diff -u smarty/docs/en/designers/language-variables/language-variables-smarty.xml:1.13 smarty/docs/en/designers/language-variables/language-variables-smarty.xml:1.14
--- smarty/docs/en/designers/language-variables/language-variables-smarty.xml:1.13 Tue Mar 28 01:38:42 2006
+++ smarty/docs/en/designers/language-variables/language-variables-smarty.xml Tue Mar 28 01:44:26 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
<sect1 id="language.variables.smarty">
<title>{$smarty} reserved variable</title>
<para>
@@ -88,11 +88,13 @@
<title>using {$smarty.const} to access constants</title>
<programlisting role="php">
<![CDATA[
+// the constant defined in php
define('_MY_CONST_VAL','CHERRIES');
]]>
</programlisting>
<programlisting>
<![CDATA[
+{* the output of php constant in the template *}
{$smarty.const._MY_CONST_VAL}
]]>
</programlisting>