Welcome Guest, Not a member yet? Register   Sign In
Form verification callback function in Ci4
#2

(06-16-2020, 04:32 AM)mktek Wrote: Hello,

I have been using Ci3 for 3 years. I have developed many projects. I created a code pool for myself. Learning Ci3 is very easy. You can find many examples on the Internet. But Ci4 is not like that. I had a hard time learning. The documents are unfortunately not open enough. There is not enough sample code on the Internet. Obviously my enthusiasm was very broken.

For example, form validation in Ci3 is as follows:

Code:
$this->form_validation->set_rules('password', 'password', 'required|callback_check_database');

How can I do this with Ci4? Could you please explain it simply by writing code?

Hello !
CI4 in this regard is practically no different from CI3.
PHP Code:
//  with using class:
$validation =  \Config\Services::validation(); 
 Read the user guide:
USER GUIDE
I would change this world, but God doesn't give me the source.
Reply


Messages In This Thread
RE: Form verification callback function in Ci4 - by Digital_Wolf - 06-16-2020, 05:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB