These functions let you access system paths and generate links.
You can use syntax of the form:
functionName()
to call these functions in your PHP code.
Name in Zenario 8
ze\link::absolute()
Returns the full URL that the CMS is installed at.
Name in Zenario 8
ze\link::adminDomain()
This returns the admin domain of the site, or the current domain if no admin domain has been set.
Name in Zenario 8
ze\link::host()
Returns the PHP variable $_SERVER['HTTP_HOST'], or if this is not set, the default URL of the site.
Name in Zenario 8
ze\link::protocol()
This function checks the PHP $_SERVER['SCRIPT_URI'] variable, and returns either http:// or https:// depending on whether a secure connection is currently being used.
Name in Zenario 8
ze\link::toContentItem()
Use this to generate a link to a content item.