Developer's Manual  System Variables and Constants  suFBASE

suFBASE

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

Example

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