views:

47

answers:

2

I'm trying to customize the CSS/HTML for error message displays in codeigniter so I can apply a tag too each and style them up.

I tried to Google this and search the manual but must have been searching for the wrong terms - can anyone help me out?

+3  A: 

If you are looking to customize the error messages for form validation, you can do something like this...

$this->validation->set_error_delimiters('<div class="error">', '</div>');

For more info, see the related Codeigniter documentation

ShiVik
Thanks, no idea how I missed that... sorry.
Walker
A: 

$this->validation->set_error_delimiters('', '');