Welcome Guest, Not a member yet? Register   Sign In
Validation
#6

Sorry about that, missed the part where it said you didn't post any data.

Should be:
PHP Code:
if($validation->withRequest($this->request)->run()) { 
https://codeigniter.com/user_guide/libra...ithrequest

Or you need to manually input an $data array:
PHP Code:
if($validation->run($data)) { 

Where $data have been grabbed from the POST.
PHP Code:
$data = [
    
'email' => $this->request->getPost('email'),
    
'password' => $this->request->getPost('password'),
]; 
Reply


Messages In This Thread
Validation - by pippuccio76 - 08-04-2020, 12:08 PM
RE: Validation - by jreklund - 08-04-2020, 12:25 PM
RE: Validation - by pippuccio76 - 08-17-2020, 06:47 AM
RE: Validation - by jreklund - 08-17-2020, 09:09 AM
RE: Validation - by pippuccio76 - 08-17-2020, 09:57 AM
RE: Validation - by jreklund - 08-21-2020, 11:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB