public function render($template, $data = [], $code = 200, array $headers = [])
    {
        $this->code = $code;

        $this->withHeaders($headers);

        $view = View::parse($template, $data);

        $this->content = $view->sendContent();

        return $this->buildHttpResponse();
    }
public function render($template, $data = [], $code = 200, array $headers = [])
    {
        $this->code = $code;

        $this->withHeaders($headers);

        $view = View::parse($template, $data);

        $this->content = $view->sendContent();

        return $this->buildHttpResponse();
    }
public function render ( $ template , $ data = [ ] , $ code = 200 , array $ headers = [ ] ) { $ this -> code = $ code ; $ this -> withHeaders ( $ headers ) ; $ view = View :: parse ( $ template , $ data ) ; $ this -> content = $ view -> sendContent ( ) ; return $ this -> buildHttpResponse ( ) ; }
Make view rendering

@param  $template
@param  array $data
@param  int $code
@param  array $headers
@return string
@throws
Make view rendering