sms-projeto-modelo
Instalação:
1 - composer global require "fxp/composer-asset-plugin:^1.3.1", (*1)
2 - composer create-project --stability=dev juniorpires/sms-projeto-modelo, (*2)
3 - cd sms-projeto-modelo, (*3)
4 - php init, (*4)
5 - composer update, (*5)
6 - crie um banco de dados, (*6)
- Em common/config/main-local.php:
php
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=nomedobanco',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
],
]
lembre-se de colocar no host: 127.0.0.1
7 - php yii migrate/up --migrationPath=@vendor/dektrium/yii2-user/migrations, (*7)
8 - php yii migrate/up --migrationPath=@yii/rbac/migrations, (*8)
9 - php yii migrate, (*9)
Verificando se deu certo:
http://localhost/sms-projeto-modelo/frontend/web/index.php, (*10)
login: admin
senha: admin1, (*11)