Exemplo n.º 1
0
 /**
  * Sends a rendered html page
  *
  * @param $template
  * @param array|null $data
  * @param array|null $headers
  * @param int $responseCode
  *
  * @return mixed
  */
 public function send($template, array $data = [], array $headers = [], $responseCode = self::OK)
 {
     $this->addHeader('Content-Type', 'text/html;charset=UTF-8');
     $this->addHeaders($headers);
     $this->raw($this->templateClient->render($template, $data), $responseCode);
 }