How to get the error based on field name from error summary
<?php echo $form->errorSummary($model);
It will display all errors. But I have to get errors for single field (like array). Is it possible?
How to get the error based on field name from error summary
<?php echo $form->errorSummary($model);
It will display all errors. But I have to get errors for single field (like array). Is it possible?
<?php echo $form->error($model,‘feild_name’); ?>
Dear Brother
$model->getErrors("attributeName");
This will bring all the errors in array format for a particular attribute.
Thank you friends