resourcePath('views/' . str_replace('.', '/', $this->view) . '.php'); if (!file_exists($viewsPath)) { throw new \Exception('View not found'); } extract($this->data); include $viewsPath; } }