mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-03 22:01:36 +01:00
tweek
This commit is contained in:
@@ -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