I have something like this in a CodeIgniter Model
$query = $this->db->insert('something',$data);
if($query)
{
return true;
}
else
{
return $this->db->_error_message();
}
What I would very much like to know is, how can I remove the html from the error template generated by CodeIgniter, when the _error_message() function is returned, keeping just the plain error message text?
Any ideas?