Skip to content

Kirby 4.4.1

$file->url()

Returns the Url

$file->url(): string

Return type

string

Parent class

Kirby\Cms\File

Example

if($file = $page->file('myimage.jpg')) {
  echo $file->url();
}