Difference between #143 and #144 of
Yii v2 snippet guide

Revision #144 has been created by rackycz on Oct 6, 2019, 8:05:28 PM with the memo:

« previous (#143) next (#145) »


Title unchanged

Yii v2 snippet guide

Category unchanged


Yii version unchanged


Tags unchanged


Content changed

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.

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 ...

```php $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.
2 0
1 follower
Viewed: 11 526 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: 28 days ago
Update Article


View all history