Backend user & password:
Login: admin
Password: qwe1234
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
php composer.phar create-project --stability=dev funson86/yii2-adminlte yii2-adminlte
to install Yii2-Adminlte.cd /my/path/to/yii2-adminlte/
and go to main application directory.php requirements.php
and check the requirements.php init
to initialize the application with a specific environment.common/config/main-local.php
accordingly.yii migrate
to apply migrations with console commands:
my/path/to/yii2-adminlte/tests/yii2-adminlte.sql
, but however I recommend to use migrations.http://yii2-adminlte.domain
point to yii2-adminlte/frontend/web/
to access application frontend.http://backend.yii2-adminlte.domain
point to yii2-adminlte/backend/web/
to access application backend.yii migrate --migrationPath=@console/migrations/rbac
to add permission, add more rbac file here while your project growing.'visible' => Yii::$app->user->can('readPost'),
in top-menu.php or sidebar-menu.php.if(!Yii::$app->user->can('createPost')) throw new HttpException(401, 'No Auth');
in actionIndex, actionCreate, actionUpdate in XXXController.php file.By default will be created one super admin user with login admin
and password qwe1234
, you can use this data to sing in application frontend and backend.
Comments