site_url
function site_url($local_url)
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().
Parameters
- $local_url - string Specifies a local URL value to turn into the absolute URL.
Return value
Returns string value.
Examples
The following code outputs an absolute URL of the Contacts page.
Contacts page: <?= site_url('/contacts') ?>
Next: tax_incl_label
Previous: Shop_ShippingOption
Return to Reference


Comments
No comments posted so far.
Add your comment
Loading form...