src/Yggdrasil/Core/Controller/ApiController.php
protected function renderPartial(string $view, array $params = []): string
    {
        $this->getTemplateEngine()->addGlobal('_request', $this->getRequest());

        return $this->getTemplateEngine()->render($view, $params);
    }
protected function renderPartial(string $view, array $params = []): string
    {
        $this->getTemplateEngine()->addGlobal('_request', $this->getRequest());

        return $this->getTemplateEngine()->render($view, $params);
    }
protected function renderPartial ( string $ view , array $ params = [ ] ) : string { $ this -> getTemplateEngine ( ) -> addGlobal ( '_request' , $ this -> getRequest ( ) ) ; return $ this -> getTemplateEngine ( ) -> render ( $ view , $ params ) ; }
Renders partial view

@param string $view    Name of view file
@param array  $params  Parameters supposed to be passed to the view
@return string
Renders partial view