root_url
function root_url($value, $add_host_and_protocol = false)
This function is useful if you installed LemonStand into a subdirectory of a domain and need to use LemonStand root-relative URLs on your pages for some reason. For example, if you installed LemonStand into the shop subdirectory of the http://my_host.com domain, the following call will return the /shop/cart URL:
root_url('/cart')Parameters
- $value - the URL, relative to the your LemonStand root directory
- $add_host_and_protocol - optional parameters which allows you to generate an absolute URL which includes the host name and protocol
Return Value
This function returns a string, containing an URL relative to the LemonStand domain root.
Next: Shop_ProductBundleItem
Previous: Shop_Product
Return to Reference

