public static function isAjax() { return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == "xmlhttprequest" ? true : false; }
/** * CHeck request if it's an ajax request * @return bool */ public function isAjax() { return Http\Request::isAjax(); }