custom error message codeigniter doesn't show up -


the custom error message doesn't displaying error,it shows blank page instead error message

here controller :

public function daftar(){   $this->form_validation->set_rules('email','email','required');   $this->form_validation->set_rules('nama','nama','required');   $this->form_validation->set_rules('pass','password','required');   $this->form_validation->set_rules('passconf','passwordconf','required|matches[pass]');    if($this->form_validation->run()==false){   $this->form_validation->set_message('passconf','the password doesnt match');   }  else{    redirect('lowongan/daftar_employer');  }   } 

}

you need escape apostrophe in word "doesn't".

$this->form_validation->set_message('passconf','the password doesn\'t match'); 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -