Welcome Guest, Not a member yet? Register   Sign In
$validationRules is there a documentation with all the references we can use?
#1

(This post was last modified: 08-01-2024, 02:24 AM by kcs.)

Hi, I always find myself browsing the web to find how to write validation rules. Is there a documentation somewhere I haven't yet found that might list all the available rules we can use depending on the database expected data format? Or can I find it within the code? (and maybe suggest/write a little addition in the documentation that could be useful for beginners and people like me?)
Thanks

(I found this from some versions ago that is a beginning https://www.codeigniter.com/userguide2/l...ereference but I think there is more to it and there might be some changes)
Reply
#2

See https://codeigniter.com/user_guide/libra...able-rules

CodeIgniter4 User Guide
https://codeigniter.com/user_guide/
Reply
#3

Thank you for pointing at the right place. I was looking for it on the Using Codeigniter's Model page and could not find it.

Can I suggest to add a link to it on the https://codeigniter.com/user_guide/model...tion-rules page?
Maybe in the section that titles "Setting validation rules"?
There is a short paragraphe, then an example, then maybe adding a link like this
"You can find the list of all the available rules  here: https://codeigniter.com/user_guide/libra...able-rules "
would make sense and be helpful to beginners like me?
Reply
#4

I sent a PR to improve the docs.
https://github.com/codeigniter4/CodeIgniter4/pull/9097
Reply
#5

Thanks a lot for doing it.
Reply
#6

Done.
See the current in-progress User Guide:
https://codeigniter4.github.io/CodeIgnit...tion-rules
Reply
#7

(08-03-2024, 11:15 PM)kenjis Wrote: Done.
See the current in-progress User Guide:
https://codeigniter4.github.io/CodeIgnit...tion-rules

Cool Nice thank you again
Reply




Theme © iAndrew 2016 - Forum software by © MyBB