public function render($view, $params = [])
    {
        $this->createTwig();
        // We call addFunctions() here, because we must call addFunctions()
        // after loading CodeIgniter functions in a controller.
        $this->addFunctions();

        $view = $view . '.twig';

        return $this->twig->render($view, $params);
    }
public function render($view, $params = [])
    {
        $this->createTwig();
        // We call addFunctions() here, because we must call addFunctions()
        // after loading CodeIgniter functions in a controller.
        $this->addFunctions();

        $view = $view . '.twig';

        return $this->twig->render($view, $params);
    }
public function render ( $ view , $ params = [ ] ) { $ this -> createTwig ( ) ; // We call addFunctions() here, because we must call addFunctions() // after loading CodeIgniter functions in a controller. $ this -> addFunctions ( ) ; $ view = $ view . '.twig' ; return $ this -> twig -> render ( $ view , $ params ) ; }
Renders Twig Template and Returns as String

@param string $view   Template filename without `.twig`
@param array  $params Array of parameters to pass to the template

@return string
Renders Twig Template and Returns as String