Yii v2 snippet guide

Comparing #23 with #24

Revision #24 was created by rackycz rackycz on Sep 20, 2019, 8:08:45 AM.

prereq

Content

[...]
The Exception is removed by enterinng any text into attribute 'cookieValidationKey' in file:

- C:\xampp\htdocs\basic\config\web.php

Dont forget to connect Yii to the DB. It is done in file:
 
 
- C:\xampp\htdocs\basic\config\db.php
 
 
... but it should work out of the box ...
 
 
Yii demo app + GitLab
---
... text ...
[...]
```MySQL
CREATE DATABASE IF NOT EXISTS `yii
-demo-db2basic` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

CREATE TABLE IF NOT EXISTS `user` (
`id` INT NOT NULL AUTO_INCREMENT,
`username` VARCHAR(45) NOT NULL,
`password` VARCHAR(60) NOT NULL,
[...]