Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public function isAjax()
  2. {
  3. if ($this->getRequestUri() == 'custom/url') {
  4. return true;
  5. }
  6. if ($this->isXmlHttpRequest()) {
  7. return true;
  8. }
  9. if ($this->getParam('ajax') || $this->getParam('isAjax')) {
  10. return true;
  11. }
  12. return false;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement