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 t
You can use the method "set_error_delimiters" of library "Form Validation":
$this->validation->set_error_delimiters('', '');
Also you can made on code inline with form helper:
validation_errors('', '')
Or created extends class on form_validation library:
class MY_Form_validation extends CI_Form_validation
{
public function __construct( $rules = array() )
{
// applies delimiters set in config file.
if( ! isset( $rules['error_prefix'] ) )
{
$rules['error_prefix'] = '';
}
if( ! isset( $rules['error_suffix'] ) )
{
$rules['error_suffix'] = '';
}
parent::__construct( $rules );
}
}
I like the last method because allow set a style by default and overwrite from before method explain.
Sorry for my english :)