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

View File

@@ -88,11 +88,13 @@
<title>using {$smarty.const} to access constants</title> <title>using {$smarty.const} to access constants</title>
<programlisting role="php"> <programlisting role="php">
<![CDATA[ <![CDATA[
// the constant defined in php
define('_MY_CONST_VAL','CHERRIES'); define('_MY_CONST_VAL','CHERRIES');
]]> ]]>
</programlisting> </programlisting>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
{* the output of php constant in the template *}
{$smarty.const._MY_CONST_VAL} {$smarty.const._MY_CONST_VAL}
]]> ]]>
</programlisting> </programlisting>