CodeIgniter Forums
how to call my own validation methods? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forum-31.html)
+--- Thread: how to call my own validation methods? (/thread-66720.html)



how to call my own validation methods? - startbbs - 11-24-2016

I CI4, 
Does CI4 support  to callback my own validation methods? please guide. thanks.

PHP Code:
$validation->setRule('username''required|callback_username_check');

function 
username_check{
//my own function




RE: how to call my own validation methods? - ridho - 11-24-2016

See https://bcit-ci.github.io/CodeIgniter4/libraries/validation.html#creating-custom-rules


RE: how to call my own validation methods? - startbbs - 11-24-2016

(11-24-2016, 08:53 PM)ridho Wrote: See https://bcit-ci.github.io/CodeIgniter4/libraries/validation.html#creating-custom-rules

Thanks a lot.