How to create custom validation rule in Yii?
In the scenarios where validation rules provided by the Yii framework won?t handle your requirements, you can create custom validation rules. One example is the “authenticate” validation rule provided in “LoginForm” model of Yii blog demo. You can create your own by following these steps. 1. In rules() method of your model, specify name of … [Read more…]