Developer's Manual  System Variables and Constants  suBASE

suBASE

Constant suBASE is used to create URL address to a page. The constant may contain reference to index.php file (if hideIndex is set to 0) and current language.

Example

<?
echo '<a href="' . suBASE . '/' . $suDOC['path'] . '">click to reload the page</a>';
// The link above could look like /index.php/en/path if hideIndex is set to 0
// or /en/path if hideIndex is enabled
?>
Please login to add comments.