Ejemplo n.º 1
0
 function error()
 {
     $trace = array_filter(array_map(function ($t) {
         return isset($t['file']) && isset($t['line']) ? array('file' => $t['file'], 'line' => $t['line']) : null;
     }, debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT)));
     $args = array_2d_to_1d(array_filter(func_get_args()));
     $title = array_shift($args);
     ob_start();
     include FCPATH . APPPATH . 'errors' . DIRECTORY_SEPARATOR . 'error' . EXT;
     $buffer = ob_get_contents();
     @ob_end_clean();
     echo $buffer;
     exit;
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     $this->messages = array_2d_to_1d(func_get_args());
 }