function dd() { if (Yolk::isDebug()) { headers_sent() || header('Content-type: text/plain; charset=UTF-8'); foreach (func_get_args() as $arg) { Yolk::dump($arg); } die; } }
/** * Default exception handler * @param \Exception $error * @param string $error_page the file containing the error page to include for production web apps * @return void */ public static function exception(\Exception $error, $error_page) { static::logException($error); if (Yolk::isCLI()) { Yolk::dump($error); } elseif (Yolk::isDebug()) { require __DIR__ . '/error.debug.php'; } else { require $error_page; } }