Improved Yii 2 Advanced Project Template is an expented version of Yii 2 Advanced Project Template.
I have:
- added
chmod
to theinit
for all dirs Gii can write in - added an staging environment to the
init
- separeted db configurations from
main-local.php
- added
*-local.php
to allconfig/.gitignore
files - added pretty URLs to backend and frontend configs
- added
.htaccess
to allweb/.gitignore
files (incase you need them)
If you do not have Composer, follow the instructions in the Installing Yii section of the definitive guide to install it.
With Composer installed, you can then install the application using the following commands:
composer global require "fxp/composer-asset-plugin:~1.0.3"
composer create-project --prefer-dist mghollander/yii2-app-advanced-improved yii-application
After installing the application you need to add your db config to common/config/db-local.php
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2-advanced',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
];
Now follow the Yii 2 Advanced Project Template Application preparation steps