Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function isAjax()
- {
- if ($this->getRequestUri() == 'custom/url') {
- return true;
- }
- if ($this->isXmlHttpRequest()) {
- return true;
- }
- if ($this->getParam('ajax') || $this->getParam('isAjax')) {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement