1. Go to this page and download the library: Download dickyermawan/yii2-admin library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
'components' => [
'authManager' => [
'class' => 'yii\rbac\DbManager', // only support DbManager
],
],
First login
username: admin
password: admin
default
password: 1234
if ((Admin::checkRoute($this->context->id.'/create'))){
echo Html::a('Create Note', ['create'], ['class' => 'btn btn-success']);
}
// in other case maybe You want ensure same of route so You can add parameter strict true
if ((Admin::checkRoute($this->context->id.'/create',true))){