O
O
Oleg09562017-10-29 20:54:09
CodeIgniter
Oleg0956, 2017-10-29 20:54:09

How to create custom form_validation rule in Codeigniter?

Hello. Please tell me how to create my own form_validation rule in Codeigniter 3. It is necessary to make a rule for checking the Cyrillic alphabet. I tried to use the "alpha" rule, but it does not accept Cyrillic. I ask for your help. Perhaps someone already has a created rule, or pieces of code, share, I will be very grateful.
I searched on the Internet, found only here , the links are not working, the author abandoned the blog a long time ago, tried to contact him, in response to silence. Author's profile on Habré.
Perhaps someone has his actual contact details, please also share them. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor, 2017-10-29
@egormmm

The manual says: https://www.codeigniter.com/userguide3/libraries/f...

K
krypt3r, 2017-10-30
@krypt3r

In the application/libraries directory, create the MY_Form_validation class, which inherits from CI_Form_validation. This is where you describe your data validation methods.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question