Yii v2 snippet guide

Comparing #26 with #27

Revision #27 was created by rackycz rackycz on Sep 20, 2019, 9:03:55 AM.

db

Content

[...]
Yii demo app + GitLab
---
... text ...

Translations (i18n) + changing languages
 
---
 
... text ...
 
 
User management + basic SQL commands
---
To create DB with users, use following command. I recommend charset **utf8_unicode_ci** (or utf8mb4_unicode_ci) as it allows you to use [more international characters](https://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci).
[...]
Then use GII to generate model, views and controller. The URL will probably be
- [http://localhost/basic/web/index.php?r=gii](http://localhost/basic/web/index.php?r=gii).
- When creating the model, check this checkbox:
**Enable I18N** ... we will i18n it later

Login via database + Session
---
... text ...
[...]