Example #1
0
 public function make($filename, $data = [])
 {
     $view = new View($this);
     $view->setPath($this->app->basePath($this->app->config->get('app.view.templates', 'app' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR)));
     $view->setCachePath($this->app->cachePath($this->app->config->get('app.view.cache', 'views' . DIRECTORY_SEPARATOR)));
     $view->setFilename($filename);
     $view->data($data);
     return $view;
 }