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');