Revision #144 has been created by rackycz on Oct 6, 2019, 8:05:28 PM with the memo:
« previous (#143) next (#145) »
Yii v2 snippet guide
[...]You can customize the calendar in many ways. For example different event-color is shown [here](https://fullcalendar.io/docs/event-colors-demo). Check the source code.
**Scenarios - UNKNOWN SCENARIO EXCEPTION**
I have been using scenarios a lot but today I spent 1 hour on a problem - I had 2 scenarios and one of them was just assigned to the model ...
$model->scenario = "abc";
... but had no **rule** defined yet. I wanted to implement the rule later, but I didnt know that when you set a scenario to your model it **must** be used in method rules() or defined in method scenarios(). So take this into consideration. I expected that when the scenario has no rules it will just be skipped or deleted.