/** * Constructor * */ public function __construct(Kirby $kirby) { $this->kirby = $kirby; $this->url = $kirby->urls()->index(); $this->depth = 0; $this->uri = ''; $this->site = $this; $this->page = null; // build ugly urls if rewriting is disabled if ($this->kirby->options['rewrite'] === false) { $this->url .= '/index.php'; } $this->root = $kirby->roots()->content(); $this->dirname = basename($this->root); }