Welcome Guest, Not a member yet? Register   Sign In
CI4 equivalent of $this->form_validation->set_data($data);
#1

Hello,

I need to validate a value outside of $_POST data. In CI3 I could easily manually assign data before running validation:

PHP Code:
$data = array(
        'username' => 'johndoe',
        'password' => 'mypassword',
        'passconf' => 'mypassword'
);

$this->form_validation->set_data($data); 


But it seems this feature is not exist on CI4.

How to do this?

Thanks.
Reply


Messages In This Thread
CI4 equivalent of $this->form_validation->set_data($data); - by mokalovesoulmate - 08-08-2020, 11:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB