Yii3 - How to start

Comparing #85 with #86

Revision #86 was created by rackycz rackycz on Nov 13, 2026, 9:57:32 AM.

insights

Content

[...]
## Real life insights

### DB vs PHP file

You may soon find out that storing translations and RBAC definitions (user roles and permissions) in DB is a pain in the ... .

 
Why? Because these are usually only modified by developers and creating migrations because of every small change is tedious.
 
 
I recommend storing them in PHP files. In case of RBAC the only thing you want to have in DB is the assignment of users to roles so they can be changed via WEB UI.

## ===== Yii3 - How to start ======

Yii3 offers more basic applications: Web, Console, API. I will be using the WEB application:
- https://github.com/yiisoft/app
[...]