• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to call my own validation methods?

#1
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

Q&A for Codeigniter
StartBBS--open-source, light weight forum software.
Best VPS:Digital Ocean
Reply

#2
See https://bcit-ci.github.io/CodeIgniter4/l...stom-rules
Reply

#3
(11-24-2016, 09:53 PM)ridho Wrote: See https://bcit-ci.github.io/CodeIgniter4/l...stom-rules

Thanks a lot.
Q&A for Codeigniter
StartBBS--open-source, light weight forum software.
Best VPS:Digital Ocean
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.