dkanavis

Untitled

Oct 24th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. public function ajaxErr($format, ...$args) {
  2.     $text = vsprintf($format, $args);
  3.     die(json_encode([
  4.         'success' => 0,
  5.         'errorCode' => 0,
  6.         'error' => $text
  7.     ]));
  8. }
Advertisement
Add Comment
Please, Sign In to add comment