Welcome Guest, Not a member yet? Register   Sign In
Custom form validation
#1

Hi All,
I has a custom form validation created just like the one on this tutorial (https://makitweb.com/create-custom-valid...igniter-4/) and was working fine on 4.2.1.
I just updated the core to 4.3.1 and the form validation errors are not been displayed on the view. Validation work and I can catch the custom error msg on the controller but it's not working on the view. Basically I load the service on the view and print the error as per below. Any idea why this is not working on 4.3.1 ?

Code:
//load the service
$validation = \Config\Services::validation()


//print the error
echo $error = $validation->getError('email');
Reply


Messages In This Thread
Custom form validation - by chakycool - 01-24-2023, 03:15 AM
RE: Custom form validation - by kenjis - 01-24-2023, 03:47 AM
RE: Custom form validation - by chakycool - 01-24-2023, 04:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB