<?php $valid = $model->validate(); print_r($model->getErrors()); exit; //To show validation errors if ($valid) { $model->save(); } ?>
No comments:
Post a Comment