Welcome Guest, Not a member yet? Register   Sign In
Ci4 Base controller vs Controller
#2

$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! ***/
Reply


Messages In This Thread
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



Theme © iAndrew 2016 - Forum software by © MyBB