PHP code example of kerneldos / yii2-admin-modules
1. Go to this page and download the library: Download kerneldos/yii2-admin-modules 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/ */
kerneldos / yii2-admin-modules example snippets
php
'modules' => [
//...
'admin' => [
'class' => 'kerneldos\extmodule\Module',
'layoutPath' => '@app/views/layouts',
'layout' => 'main',
'as Access' => [
'class' => 'yii\filters\AccessControl',
'rules' => [
[
'allow' => true,
'roles' => ['admin'],
],
],
],
],
//...
],