How To Get The Error From Error Summary

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’); ?>

Check this link

Dear Brother


This will bring all the errors in array format for a particular attribute.

Thank you friends