Simple project using basic template yii2
- PHP >= 5.4.0
- MySQL >= 5.6.25
- Apache Server
- Open a terminal and navigate to the directory of your project
- Run command
composer update
- Create new database and then import DDL Query from your-project-name\data\init-db.sql
- Run yii command for init default user admin :
php yii init-user/index -u=username -p=password -e=email
. Set username, password and email - Run yii command for init default auth for user admin:
php yii init-auth/index
- Run your project on web browser. If you got error like this
The file or directory to be published does not exist: path/vendor/almasaeed2010/adminlte/plugins/iCheck
, copy folder .github, bower_components, build, pages, plugins, documentation from https://github.com/almasaeed2010/AdminLTE to under folder path/vendor/almasaeed2010/adminlte