Allow getting params the same way data() works

I could improve this to do the `hash::insert()` to replace `addParams()` as is done in `data()`
This commit is contained in:
Carl Sutton 2014-05-22 17:32:19 +01:00
parent 2e4d6eb009
commit a657e410b2

View file

@ -875,7 +875,7 @@ class CakeRequest implements ArrayAccess {
*/
public function param($name) {
if (!isset($this->params[$name])) {
return false;
return Hash::get($this->params, $name);
}
return $this->params[$name];
}