[Ajax] Importance Of Yii::app()->End();

On ajax request, what is the end app for? it seems to me it will end the application, but what is it really for?





public function actionAjax()

    {

	// some codes

        Yii::app()->end();

    }



This method replaces PHP’s exit() function by calling onEndRequest before exiting

http://www.yiiframework.com/doc/api/1.1/CApplication#end-detail