getRootPath() . $this->path; ob_start(); include $path; $output = ob_get_clean(); if ($this->extends) { $output = (new BaseView($this->extends, $this->data + ['slot' => $output]))->render($config); } return $output; } }