How To Write Custom Validation Rule In Yii

How To Write Custom Validation Rule In Yii

Sometimes the validation provided by the framework is not enough as per your requirements, so you want to write your custom rule and apply it on your model as per you need Yii provides flexibility to write your own custom validator and inject into model class.