I’m new to Yii framework. I started working on it few days back.
Now I’m working on a demo application wherein I have user registration and user login.
As I went through few documentation on Yii I found out that one needs to use Scenarios for Login/Registration while specifying rules in the model.
So can someone help me to understand what scenarios are…??..And how does one can define custom scenarios…??
Please explain with some example module so that I can understand it better.
I tried to implement scenarios but I found that the validate() function in controller is not working.
It would be nice if someone could help me regarding this matter.