Welcome Guest, Not a member yet? Register   Sign In
$this->validation->withRequest($this->request)->run() behavior

CI4's $this->validation->withRequest($this->request)->run() behaves differently then CI3's $this->form_validation->run()?

When the page is loaded and no submit button is clicked CI3 will return FALSE. It appears CI4 returns TRUE.
I had to do the following:

if ($this->request->getVar('submitted') == NULL || ! $this->validation->withRequest($this->request)->run())

Is this the way it's supposed to work?
Simpler is always better

Messages In This Thread
$this->validation->withRequest($this->request)->run() behavior - by donpwinston - 04-20-2017, 08:42 AM

Theme © iAndrew 2016 - Forum software by © MyBB