$smarty.const
| From: | Ferdinand Beyer | Date: | Wed, 05 Feb 2003 22:47:01 +0000 |
| Subject: | $smarty.const | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7538@lists.php.net to get a copy of this message | ||
IMO Smarty should save the return value of get_defined_constants()
in an array and let $smarty.const.* reference to that array:
$smarty.const.xyz -> $this->_constants['xyz']
By doing this it would be possible to check whether a constant exists,
eg.
{$smarty.const.FOOBAR|default:'...'}
--
Ferdinand Beyer
<fbeyer@clickhand.de>