How to get $kirby->url() in a model class extends Page

Hi,

I have a model and need to get the $kirby->url(). I don’t know how to.

class rss extends Page{
  public function children(){
  // return $kirby->url(); 
  }
}

You can use $this->kirby()->url() to get website url.

1 Like

Thank you!