Le Manuel»Développer avec CakePHP»Contrôleurs»Attributs des Contrôleurs»L'attribut Paramètres ($params)»action
{FR} - 3.5.2.4.6 action
$this->params['action']
$this->params['action']
Stocke le nom de l'action courante exécutant la requête. Par exemple, si l'URL /posts/voir/1 était interrogée, $this->params['action'] serait égale à "voir".
{EN} - 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> | ||
| - | <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> |
+ | <pre>$this-&gt;params['action']</pre> <p>Stocke le nom de l'action courante exécutant la requête. Par exemple, si l'URL /posts/voir/1 était interrogée, $this-&gt;params['action'] serait égale à "voir".</p> |
