И собственно первый вопрос.![]()
Есть файл index.php
require_once dirname(__FILE__).'/lib/Twig/Autoloader.php';
Twig_Autoloader::register();
$loader = new Twig_Loader_Filesystem('templates');
$twig = new Twig_Environment($loader, array( 'cache' => 'templates/cache', ));
$template = $twig->loadTemplate('index.html');
$template->display(array('test' => 'test'));Так вот,данный пример работает,все хорошо,НО мне нужно просто вывести файл index.html не передавая ему массив test
Если я удаляю строчку
$template->display(array('test' => 'test'));То ничего не выводится,хотя в файле index.html есть текст.
В чем причина??