Welcome to the Cookbook

loading...

3.5.4.4.4 isAjax

$this->params['isAjax']

Stores 1 if the current request is an ajax call, 0 if not. This variable is only set if the RequestHandler Component is being used in the controller.