NAVI Methods
Creating menus
menu(), submenu(), crumbs()Generating links and URLs
link(), href(), domain(), home(), language(), logout(), redirect()Navigation details
index(), details(), dynamic(), query()
home()
Return link to or check if current page is domain's homepage. In case a link is returned the method automatically adds the session-id if required. In case your website has an intro page you can use the backend's domain settings to define an alternate homepage.
mixed home([ mixed index = false ])
Return
Returns link or TRUE if current page is homepage
Parameter
Description
indexBackend's navigation index (0 = current page). If no index is passed the method will produce a link to the projects home-page, on TRUE it checks if the current page is the domain's home.
Check if current page is home
$NAVI->home(true)
RETURN: FALSE
Check if any page is home
$NAVI->home(269)
RETURN: TRUE
Return link to current domain's home-page
$NAVI->home()
RETURN: '/'