Example #1
0
 /**
  * Inciamos el gestor de errores y excepciones.
  * @param boolean $debug Habilitada la depuraciĆ³n?
  */
 public function start($debug = FALSE)
 {
     self::$debug = $debug;
     set_error_handler('Error::error_handler');
     set_exception_handler('Error::exception_handler');
     // Handler PHP 5.2 errors.
     register_shutdown_function('Error::shutdown_handler');
 }