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