Ci4 Base controller vs Controller |
$request is a property of the Controller class, so you need to access it with $this->request like any other class property:
PHP Code: $foo = $this->request->getPost('foo');
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Messages In This Thread |
Ci4 Base controller vs Controller - by CodingInCodeigniter - 10-15-2021, 08:15 AM
RE: Ci4 Base controller vs Controller - by includebeer - 10-16-2021, 06:31 AM
RE: Ci4 Base controller vs Controller - by kenjis - 10-16-2021, 07:27 PM
RE: Ci4 Base controller vs Controller - by ikesela - 10-16-2021, 11:38 PM
|