Constants in Templates
A few posts I've made today made me thought that some funcs aren't worth anything if people don't know about them. So this one may be useful to some of you (I haven't seen this used until now). All PHP defined constants are directly accessible in smarty templates, by using:
<{$smarty.const.DEFINENAME}>
So no need to assign them manually, as some core modules do.
Back to the dev:Main Page











![[Main Page]](/modules/mediawiki/images/mediawiki.png)


