Re: How can I use constants defined in php
| From: | pete M | Date: | Wed, 18 Feb 2004 14:19:45 +0000 |
| Subject: | Re: How can I use constants defined in php | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10978@lists.php.net to get a copy of this message | ||
define("CON","value");
$smarty->assign("CON","CON");
in the template
<b>{$CON}</b>
Myhan wrote:
I have defined many constants in my php models, and I use Smarty to implement my views. How can I use these constants direct. I cannot find anything about it in Smarty manual. Thanks~~~~