Exemplo n.º 1
0
function halt($msg, $file = '', $line = '')
{
    if (APP_DEBUG) {
        $e['message'] = $msg;
        $e['file'] = $file;
        $e['line'] = $line;
        include PT_PATH . '/error.tpl';
    } else {
        PT::err404($msg);
    }
}