CodeIgniter Forums

Full Version: how to call my own validation methods?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

(11-24-2016, 08:53 PM)ridho Wrote: [ -> ]See https://bcit-ci.github.io/CodeIgniter4/l...stom-rules

Thanks a lot.