Re: [SMARTY] Any idea on how to display Class Constants (php5) in smarty ..

From: Date: Mon, 28 Mar 2005 23:37:42 +0000
Subject: Re: [SMARTY] Any idea on how to display Class Constants (php5) in smarty ..
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12374@lists.php.net to get a copy of this message
Smarty has no support for class constants at this time. You will have to create your constants as global constants or perhaps assign them to an array to get normal access to them. Notably, most PHP5 only features are not supported including class constants and derefrencing method returns [eg: $foo->bar()->baz()] xo boots --- "Donald A. Lobo" <lobo@objectledge.net> wrote: > > Hi!! > > I'm trying to use the {$smarty.const.} tag > > lets assume i have a class > > class Test { > const VALUE = 1; > > } > > how can i access Test::VALUE using $smarty.const}? > > {$smarty.const.Test::VALUE} did not seem to work > > any ideas? > > thanx > > lobo

« previous php.smarty.general (#12374) next »