Validation Rule Modified As Per Requirement?

Hi All,

I have form of add and edit student details. In that password field is required on add student but when i’m editing the student details password field should not a required field validated with confirm password only if I’ll fill the password field.

Is any way do these or I’ll take two different view for Add and Edit.

I’m new in yii framework

I think this will help you to resolve your issue.

http://www.yiiframework.com/wiki/718/yii-change-password-with-use-of-old-and-repeat-password-using-bootstrap-tbactiveform/

for more help please show your models, action controller and view page source code?