php - Codeigniter Change field name on error reporting? -
well here example error codeigniter shoot out @ user if don't type in email.
email: email field required.
now "email" part specifically. how can change whatever like? seems using inputs name/id.
example of how setup form validation email.
$this->form_validation->set_rules('email', 'email', 'required|valid_email|is_unique[user.email]');
so maybe better example .. wanted change saying "email" "the email"
thanks in advnace.
you should use set_message function in form_validation library.for example;
$this->form_validation->set_message('email', '%s entered email adress, it's wrong!');
codeigniter's user-guide easy , interactive.you should check documentation these type of basic questions.
Comments
Post a Comment