Debug
' . print_r($debug, true) . '

'; } $loader->setPaths($config['dir']['template']); $twig = new Twig_Environment($loader, Array( 'autoescape' => false, 'cache' => "{$config['dir']['template']}/cache", 'debug' => ($config['debug'] ? true : false), )); $twig->addExtension(new Twig_Extensions_Extension_Tinyboard()); $twig->addExtension(new Twig_Extensions_Extension_I18n()); // Read the template file if(@file_get_contents("{$config['dir']['template']}/${templateFile}")) { return $twig->render($templateFile, $options); } else { throw new Exception("Template file '${templateFile}' does not exist or is empty in '{$config['dir']['template']}'!"); } } ?>