Welcome Guest, Not a member yet? Register   Sign In
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

(This post was last modified: 11-24-2016, 08:55 PM by ridho.)

See https://bcit-ci.github.io/CodeIgniter4/l...stom-rules
Tafsir NU adalah sebuah aplikasi yang berisi kumpulan kajian kitab kuning yang disampaikan oleh Kiai Nahdhotul Ulama seperti Gus Baha, gus mus, dan kiai lainnya dalam format audio.
Reply
#3

(This post was last modified: 11-24-2016, 09:29 PM by startbbs.)

(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




Theme © iAndrew 2016 - Forum software by © MyBB