1.

How to check an Ajax request on the server?

Answer»

Checking an Ajax request on the server is a task which can be DONE with the HELP of input CLASS method. If there has been an Ajax request on the server, then the function, Input::is_ajax will return TRUE, and in the otherwise case, it will return false.

Example

if (Input::is_ajax()) {
    // Ajax request
} else {
    // Normal request
}



Discussion

No Comment Found