The Cookbook»1.2 Collection»The Manual»Developing with CakePHP»Controllers»Controller Attributes»The Parameters Attribute ($params)»action
{1386} - 3.5.2.4.6 action
$this->params['action']
$this->params['action']
Stores the name of the current action handling the request. For example, if the URL /posts/view/1 was requested, $this->params['action'] would equal "view".
{3901} - 3.5.2.4.6 action
$this->params['action']
Stores the name of the current action handling the request. For example, if the URL /posts/view/1 was requested, $this->params['action'] would equal "view".
Differences
| Lines: 1-3 | Lines: 1-3 | ||
| <title>action</title> | <title>action</title> | ||
| - | <pre>$this-&gt;params['action']</pre> <p>Stores the name of the current action handling the request. For example, if the URL /posts/view/1 was requested, $this-&gt;params['action'] would equal "view".</p> |
+ | <p class="method"><code>$this->params['action']</code></p> <p>Stores the name of the current action handling the request. For example, if the URL <kbd>/posts/view/1</kbd> was requested, <code>$this->params['action']</code> would equal "view".</p> |
