mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
2e4d6eb009
commit
a657e410b2
1 changed files with 1 additions and 1 deletions
|
@ -875,7 +875,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
*/
|
*/
|
||||||
public function param($name) {
|
public function param($name) {
|
||||||
if (!isset($this->params[$name])) {
|
if (!isset($this->params[$name])) {
|
||||||
return false;
|
return Hash::get($this->params, $name);
|
||||||
}
|
}
|
||||||
return $this->params[$name];
|
return $this->params[$name];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue