public function show_php_error($severity, $message, $filepath, $line) { require_once APPPATH . 'helpers/response_helper.php'; if (ResponseIsJson()) { ResponseCrossSite(['error' => ['message' => $message, 'file' => $filepath, 'line' => $line, 'severity' => $severity]], 403); } else { $OUT =& load_class('output', 'core'); $OUT->set_content_type('text/html'); parent::show_php_error($severity, $message, $filepath, $line); } }
public function csrf_show_error() { require_once APPPATH . 'helpers/response_helper.php'; ResponseCrossSite(['error' => ['message' => 'Token Missmatch!!']], 403); }