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 |
Does zend support php 4? Explain
What are the steps kept in mind while designing the zend_form?
What is the difference between zend framework and laravel?
Is there a way to make fpdf/fpdi or zend_pdf support the parsing of pdfs greater than 1.4?
How to include css from controller and view in zend
How to include css and js from the controller in the zend framework?
Can you explain why are in-built libraries used for the web services?
Grouping where clauses with zend_db_table_abstract ?
How to access route, post, get etc. Parameters in zend framework 2?
In which file we can configuration in zend framework?
Write a program to show the function of action helper?
What is a module in zend framework 2?