Link, Path and URL Functions

These functions let you access system paths and generate links.

Calling Link, Path and URL Functions

You can use syntax of the form:

functionName()

to call these functions in your PHP code.

absCMSDirURL()

Name in Zenario 8

ze\link::absolute()

Returns the full URL that the CMS is installed at.

adminDomain()

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.

httpHost()

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.

httpOrhttps()

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.

linkToItem()

Name in Zenario 8

ze\link::toContentItem()

Use this to generate a link to a content item.