Save Recored

Hi Friends,

I ask one question.

What is diff between

$model->save(false) and $model->save()


when u use $model->save(false)…At the time of saving data i will not check model validation and when u use$model->save() i will check model validation…

$model->save(false) bypasses the validation set under rules() in your Model.

$model->save() forces the Model object to validate against the rules. If everything is good, your value are saved. If not, nothing is saved.

Hi Friends,

Thanks for reply… ::)