Ejemplo n.º 1
0
 public function __construct($title, $template, $data = [], $options = [], $headers = [])
 {
     parent::__construct();
     $this->title = $title;
     $this->template = $template;
     $this->data = $data;
     $this->options = $options;
     $this->setCallback(function () use($title, $template, $data, $options) {
         $view = new NWTemplate();
         $view->displayPage($template, $title, $data, $options);
     });
     $this->headers = new ResponseHeaderBag($headers);
 }