PHP code example of mix8872 / yii2-included-areas
1. Go to this page and download the library: Download mix8872/yii2-included-areas 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/ */
mix8872 / yii2-included-areas example snippets
'modules' => [
'872\udes',
'as access' => [
'class' => 'yii\filters\AccessControl',
'rules' => [
[
'allow' => true,
'roles' => ['admin'],
'matchCallback' => function () {
return Yii::$app->id === 'app-backend';
}
],
]
],
],
// next modules config
],
use mix8872\