This commit is contained in:
pete_morgan
2006-03-28 01:44:26 +00:00
parent cb6978197b
commit b7551b1142
2 changed files with 4 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ $smarty->assign('articleTitle',
]]>
</programlisting>
<para>
Where template is:
Where the template is:
</para>
<programlisting>
<![CDATA[
@@ -29,7 +29,7 @@ $smarty->assign('articleTitle',
]]>
</programlisting>
<para>
This should output:
will output:
</para>
<screen>
<![CDATA[

View File

@@ -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>