[eluser]jfouse[/eluser]
I can trace through the CI code to see why it's happening, but the crux of the issue is this: if I want to display a specific error message essentially bare (i.e. with no delimiters), the following doesn't work:
Code:
<?php echo form_error('field_name', '', '')?>
I can set that globally, with:
Code:
$this->form_validation->set_error_delimiters('','');
but what if I actually want delimiters globally except for somewhere specific?
Basically, set_error_delimiters() defaults the prefix and suffix to <p></p> tags but sets them to whatever's passed, whereas error() (a few lines down), and therefore form_error() which calls it, defaults the input params to empty strings and ignores them if that's what's actually passed.