Latest articles
Latest articles of category




Useful variables


Calling a variable
$smarty.const.WEBSITE_ROOT}/{$smarty.session.session_lang/index.php

The above code will call two variables. The WEBSITE_ROOT and session_lang. If you place the whole code into a link it will point to the index of the chosen language.

WEBSITE_ROOT ---> your domain path, for example http://yourdomain.com or http://www.yourdomain.com

THEME_ROOT --> the full path to theme, for example http://yourdomain.com/templates/themes

ADMIN_STYLE --> the full path to administration theme, for example http://yourdomain.com/templates/admin

GalleryPath --> the full path to gallery images, for example /home/yourusername/public_html/portal/gallery/images/

Important Notice
Most of the variables outlined here are those configured on includes/settings.php
Posted on: 23/03/2011