private function getView(string $name, array $data = [])
    {
        $filesystemLoader = new FilesystemLoader(__DIR__.'/views/%name%');
        $templating = new PhpEngine(new TemplateNameParser(), $filesystemLoader);
        return $templating->render($name . '.phtml', $data);
    }
private function getView(string $name, array $data = [])
    {
        $filesystemLoader = new FilesystemLoader(__DIR__.'/views/%name%');
        $templating = new PhpEngine(new TemplateNameParser(), $filesystemLoader);
        return $templating->render($name . '.phtml', $data);
    }
private function getView ( string $ name , array $ data = [ ] ) { $ filesystemLoader = new FilesystemLoader ( __DIR__ . '/views/%name%' ) ; $ templating = new PhpEngine ( new TemplateNameParser ( ) , $ filesystemLoader ) ; return $ templating -> render ( $ name . '.phtml' , $ data ) ; }
Get a view from the views directory
@param string $name
@param array $data
@return false|string
Get a view from the views directory