url()

The url() function is a shorthand method of instantiating a new Url Object. It also allows you to use Url Objects within Output tags e.g.


    {{ url('/').absolute }} // http://www.evance.it
    
    {{ url('~/').toCdn().absolute }} // https://cdn.evance.me/portal/web/gateway/
    
    {{ url('~/theme') }} // /portal/web/gateway/theme/v3

This in turn means that the Url object can be instantiated for limited use from within an editable region in the CMS.

The arguments accepted for the url() function are the same as those for the Url Object's construct.