smarty.const variable

The "smarty.const" tag has a number of uses.  Here are some sample snippets:


{permissions level=$smarty.const.UILEVEL_NORMAL}




Each of these uses will write a path for you so you don't have to.  There are tons of advantages to this.  The ease of accessing icons, the ease of accessing resources in your theme, the simplicity of relative linking... And of course the ability to migrate your code from one site to another without having to worry about broken links.

Loading Help