Created
May 19, 2014 16:30
-
-
Save dhrrgn/f9b8774507d89e1dcd1d to your computer and use it in GitHub Desktop.
Function for determining if a request is a Pjax request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function is_pjax() | |
| { | |
| return array_key_exists('HTTP_X_PJAX', $_SERVER) || array_key_exists('_pjax', $_GET); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment