• 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
Need a free blog? try Mitha Blog. Here You can create a free website or build a blog with dozens of free, customizable, mobile-ready designs and themes.
Reply

#3
(11-24-2016, 08: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  


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