• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Should I be doing this for form validation?

#2
I think there's no problem with your approach.
For the second question, validation rules should be an array of array so you should try:
PHP Code:
public function update_description()
 
 {
 
   ...
 
   $validate[] = $this->course_model->validate['create_course']['description']; 
 
   $this->form_validation->set_rules($validate); 
 
   if($this->form_validation->run() === FALSE) {
 
     ... 
Reply


Messages In This Thread
RE: Should I be doing this for form validation? - by pdthinh - 02-05-2017, 11:07 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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