Skip to content

coldweaker/basic-template-yii2

Repository files navigation

Yii 2 Basic Project Template


Simple project using basic template yii2

Requirements:

  1. PHP >= 5.4.0
  2. MySQL >= 5.6.25
  3. Apache Server

Set up before running:

  1. Open a terminal and navigate to the directory of your project
  2. Run command composer update
  3. Create new database and then import DDL Query from your-project-name\data\init-db.sql
  4. Run yii command for init default user admin : php yii init-user/index -u=username -p=password -e=email. Set username, password and email
  5. Run yii command for init default auth for user admin: php yii init-auth/index
  6. 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