url($path = '/')

Builds an absolute URL for a given path

  • $path (string)
    Absolute or relative URL
  • return (string)

Example

echo url();

echo url('blog');

echo url('assets/css/site.css');

echo url('http://getkirby.com');

Is something missing or incorrect? Edit this page on Github…