![]() |
$validationRules is there a documentation with all the references we can use? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: $validationRules is there a documentation with all the references we can use? (/showthread.php?tid=91376) |
$validationRules is there a documentation with all the references we can use? - kcs - 08-01-2024 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/libraries/form_validation.html#rulereference but I think there is more to it and there might be some changes) RE: $validationRules is there a documentation with all the references we can use? - kenjis - 08-01-2024 See https://codeigniter.com/user_guide/libraries/validation.html#available-rules CodeIgniter4 User Guide https://codeigniter.com/user_guide/ RE: $validationRules is there a documentation with all the references we can use? - kcs - 08-01-2024 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/models/model.html#setting-validation-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/libraries/validation.html#available-rules " would make sense and be helpful to beginners like me? RE: $validationRules is there a documentation with all the references we can use? - kenjis - 08-01-2024 I sent a PR to improve the docs. https://github.com/codeigniter4/CodeIgniter4/pull/9097 RE: $validationRules is there a documentation with all the references we can use? - kcs - 08-01-2024 Thanks a lot for doing it. RE: $validationRules is there a documentation with all the references we can use? - kenjis - 08-03-2024 Done. See the current in-progress User Guide: https://codeigniter4.github.io/CodeIgniter4/models/model.html#setting-validation-rules RE: $validationRules is there a documentation with all the references we can use? - kcs - 08-03-2024 (08-03-2024, 11:15 PM)kenjis Wrote: Done. ![]() |