The Cookbook»1.2 Collection»The Manual»Developing with CakePHP»Controllers»Controller Attributes»The Parameters Attribute ($params)»isAjax
{1530} - 3.5.2.4.4 isAjax
$this->params['ajax']
$this->params['ajax']
Stores 1 if the current layout is set to ‘ajax’, 0 if not. This variable is only set if the RequestHandler Component is being used in the controller.
{3899} - 3.5.2.4.4 isAjax
$this->params['ajax']
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.
Differences
| Lines: 1-3 | Lines: 1-3 | ||
| <title>isAjax</title> | <title>isAjax</title> | ||
| - | <pre>$this-&gt;params['ajax']</pre> <p>Stores 1 if the current layout is set to ‘ajax’, 0 if not. This variable is only set if the RequestHandler Component is being used in the controller.</p> |
+ | <p class="method"><code>$this->params['ajax']</code></p> <p>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.</p> |
