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();
}
}
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.
Thank you!