Welcome Guest, Not a member yet? Register   Sign In
put Validation Rules to the Config File
#4

It's working with my following controller code:

PHP Code:
public function index()
 {
 
           $validation  \Config\Services::validation();
 
           $data=array(
 
               'email'=>'',
 
               'username'=>'',
 
           );
 
           $validation->run($data'signup');
 
           $errors $validation->getErrors();
 
           print_r($errors); 
 } 
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


Messages In This Thread
RE: put Validation Rules to the Config File - by ridho - 11-14-2016, 02:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB