Yii Framework, check request on ajax

January 4, 2016 25 egor

Checking on ajax request in yii, simple example

<?php
if(Yii::app()->request->isAjaxRequest) { //code... }