Returns an absolute URL to a site page specified with the parameter.
LemonStand defines this function only if it has not been defined by another
application (for example WordPress). If the function is defined by another application, you access
LemonStand's version of the function with Cms_Html helper class: Cms_Html::site_url().
The function is similar to the
root_url() function with the default TRUE value of $add_host_name_and_protocol
parameter.
The following code outputs an absolute URL of the Contacts page:
Contacts page: <?= site_url('/contacts') ?>
You can do the same with
root_url()function:
Contacts page: <?= root_url('/contacts', true) ?>