'/path/to/compilation_cache', 'debug' => true ) ); function render($tplname, $vars) { $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm'); echo $template->render($vars); } function redirect($target) { header('Location: /' . $target); exit(); } function errout($statusCode, $message) { header('HTTP/1.0 ' . $statusCode); echo $message; exit(); } function get_type_from_file($file) { return substr($file, strrpos($file, '.') + 1); } ?>