How to check request is ajax in zend framework?
Answer / Prachi Shikher
In Zend Framework, you can check if a request is an AJAX request by checking the 'X-Requested-With' header. Here's an example: `if ($this->getRequest()->getHeader('X-Requested-With') == 'XMLHttpRequest') { // it's an AJAX request }`
| Is This Answer Correct ? | 0 Yes | 0 No |
How to render zf2 view within json response?
How to disable layout from controller in zend framework?
Named the latest version of zend framework?
How we can redirect to another page from controller in zend framework?
How to redirect to another page from controller?
What is zend framework 2?
Explain filters in zend framework with examples?
Does zend framework support php 7?
Explain routing in zend framework?
What do you mean by zend engine?
Can you explain what is the difference between zend_auth and zend_acl?
Where's the model?