<?php
-namespace Phorkie;
+namespace phorkie;
set_include_path(
__DIR__ . '/../src/'
. PATH_SEPARATOR . get_include_path()
} else {
header('HTTP/1.0 500 Internal server error');
}
- render('exception', array('exception' => $e));
+ render(
+ 'exception',
+ array(
+ 'exception' => $e,
+ 'debug' => $GLOBALS['phorkie']['cfg']['debug']
+ )
+ );
exit();
}
);
function render($tplname, $vars)
{
+ $vars['css'] = $GLOBALS['phorkie']['cfg']['css'];
$template = $GLOBALS['twig']->loadTemplate($tplname . '.htm');
echo $template->render($vars);
}