Topics

smarty.const variable

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

{$smarty.const.PATH_RELATIVE}

{permissions level=$smarty.const.UILEVEL_NORMAL}

{$smarty.const.ICON_RELATIVE}

{$smarty.const.THEME_RELATIVE}

{$smarty.const.PATH_RELATIVE}

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