Tips for Yii. Сhapter 3.
A grouped dropdown list.
The first option:
The second option:
We continue to tell you about some interesting moments which you can meet during web development based on a Yii framework.
Often while adding a new code or updating an existing one, you need to update the field in the table, for example date_updated / date_created.
For this purpose you should add in the model:
Now by adding or updating the code the field date_updated will be filled with actual value automatically.
There are many unclear points by developing any product, to find an answer for them you use Google or follow the advice given by your colleagues, or read manuals.
We would like to help you and to save your time, in case you have the same problems.