u($path = '/')

Shortcut for url()

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

Example

echo u();

echo u('blog');

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

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

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