Difference between #22 and #23 of
Yii v2 snippet guide

Revision #23 has been created by rackycz on Sep 20, 2019, 7:38:12 AM with the memo:

« previous (#22) next (#24) »


Title unchanged

Yii v2 for beginners

Category unchanged


Yii version unchanged


Tags unchanged


Content changed

I have some experiences with Yii 1, but I havent used Yii 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 DB login, 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...
I work with Win10 + [XAMPP Server](https://www.apachefriends.org/download.html) so I will expect this configuration. Do not forget to start the server and enable Apache + MySQL in the dialog. Then test that following 2 URLs work for you

- [http://localhost/](http://localhost/)
- C:\xampp\htdocs\basic\web\index.php

If you set thing correcly up, following URL will open your demo application. Now it will probably throw an exception:
- [http://localhost/basic/web/](http://localhost/basic/web/)
The Exception is removed by enterinng any text into attribute 'cookieValidationKey' in file:
- C:\xampp\htdocs\basic\config\web.php
Yii demo app + GitLab
... text ...

Translations (i18n) + changing languages
4 0
Viewed: 44 356 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a day ago
Update Article


View all history