Revision #41 has been created by rackycz on Sep 20, 2019, 12:27:55 PM with the memo:
« previous (#40) next (#42) »
Yii v2 for beginners
Skip this paragraph if you are in hurry :-) ... 8 years ago I started these two tutorials for Yii 1:
... and today I am beginning with Yii 2 so I will also gather my snippets and publish them here so we all can quickly setup the yii-basic-demo
experiences with Yii 1, but I havent used
for almost 5 years so many things
are new for me again. Plus I was suprised that the Yii 2 demo application does not contain some basic functionalities (like
, translations etc) which must be implemented in the most of web projects so I will focus on them. Plus I will talk about GitLab.
Skip this paragraph if you know how to run your Yii demo project...
... but it should work out
box if you use DB name "yii2basic" which is
Yii demo app + GitLab
... 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).
Login via database + Session
... text ...