src/Core/BaseController.php
protected function setView(string $name = '', array $data = [])
    {
        if (!empty($data)) {
            $this->data = array_replace($this->data, $data);
        }
        $content = (new Native($this->packageRoot, $this->request->language(), !Wrap::isEnabled()))->getContent($name, $this->data);
        $this->response->setContent($content);
    }
protected function setView(string $name = '', array $data = [])
    {
        if (!empty($data)) {
            $this->data = array_replace($this->data, $data);
        }
        $content = (new Native($this->packageRoot, $this->request->language(), !Wrap::isEnabled()))->getContent($name, $this->data);
        $this->response->setContent($content);
    }
Create Response from template.

@param string $name
@param array $data