avenirer / CodeIgniter-MY_Model

Base model (MY_Model) for the Codeigniter framework.
325 stars 205 forks source link

From_Form Update - No Show Message Error #256

Closed matheusdelima closed 7 years ago

matheusdelima commented 7 years ago

Hello Brothers,

I wish to show the messages of errors when my data for validated and the result be FALSE. I'm using the method: $this->Assistidos_model->from_form(NULL,NULL,array('id' => $id))->update() and when have messeges error the return is false and not the messeges.

avenirer commented 7 years ago

if the update returns false, you can use the form validation methods to output the errors: <?php echo validation_errors(); ?>

matheusdelima commented 7 years ago

Ok, Thanks!

avenirer commented 7 years ago

@matheusdelima any follow-up on this. If my advice works, please close issue. Thanks.