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



Theme © iAndrew 2016 - Forum software by © MyBB