Skip to content

Kirby 4.5.0

$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();
}