public function __construct(\ViewManager $view, $code = 200, $headers = array()) { $headers["Content-type"] = "text/html"; parent::__construct($view->render(true), $code, $headers); }