I decided to familiarize myself with the twig template engine.
require_once 'Twig/Autoloader.php'; Twig_Autoloader::register(); $loader = new Twig_Loader_Filesystem('templates/'); $view = new Twig_Environment($loader, array('cache' => '/files/cache', 'debug' => true)); There are no errors. Render template.
$view->render('index.php', array('name' => 'twig')); In the template, only {{name}} , but when I launch it is a blank screen. Ctrl + U in the browser is empty. What could be the problem?
PS In the case of $loader = new Twig_Loader_String() string is rendered and there are no problems.