Useful functions
IgnitedCMS comes with a few global variables which you will find useful. You can access this on any page in your templates. They are:
<?= $base_url ?>
Returns the site's base url, useful when including your own css and js files in a separate directory.
<?= session_id ?>
Returns the session id useful when you want to use sessions for example, in an online shop.
<?= site_name ?>
Returns the site name.
<?= menu ?>
Echos the menu as an unordered list.
Function reference
get_menu($ulClass,$liClass)
Parameters:
- $ulClass - (string) - e.g "sm-test"
- $liClass - (string) - e.g "fl-test"
Returns:
- Full menu div
Return type:
- String