I am currently working in yii
, I have designed a user module which consists user registraion
, user login
& change password rule
.
for these three process I have designed only one model
i.e. user model
. in this model I have defined a rule:
array('email, password, bus_name, bus_type', 'required'),
This rule is valid for actionRegister
. but now I want to define a new required rule
for actionChangePassword
,
array('password, conf_password', 'required'),
How can I define rule for this action ?