How to check an Ajax request in cakephp?

QuestionsCategory: CakephpHow to check an Ajax request in cakephp?
Samar asked 6 months ago

A request is Posted then the Insert to the Database. I have to Bound this only for ajax request.
How can I check if the request is an AJAX Request in CakePHP?