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-advanced-funson86 yii2-advanced
to install Yii2-Advanced-funson86.cd /my/path/to/yii2-advanced/
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:
yii migrate --migrationPath=@funson86/auth/migrations
to apply https://github.com/funson86/yii2-authmy/path/to/yii2-advanced/tests/yii2-advanced-funson86.sql
, but however I recommend to use migrations.http://yii2-advanced-funson86.domain
point to yii2-advanced-funson86/frontend/web/
to access application frontend.http://backend.yii2-advanced-funson86.domain
point to yii2-advanced-funson86/backend/web/
to access application backend.'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