mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
tweek
This commit is contained in:
@@ -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[
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user