PHP code example of hector-del-rio / yii2-attache

1. Go to this page and download the library: Download hector-del-rio/yii2-attache 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/ */

    

hector-del-rio / yii2-attache example snippets


    'components' => [
        ...
        'authManager' => [
            'class' => 'yii\rbac\DbManager'
        ],
        ...
    ],
    ...
    'modules' => [
        ...
        'user' => [
            'class' => 'dektrium\user\Module',
            // yii2-user options
        ],
        'admin' => [
            'class' => 'mdm\admin\Module',
            // yii2-admin options
        ],
        ...
    ],
    ...

    'bootstrap' => [
        ...
        'hectordelrio\attache\Bootstrap'
        // or if you need to configure something:
        [
            'class' => 'hectordelrio\attache\Bootstrap',
            'option1' => 'value1',
            'option2' => 'value2',
            ...
        ]
        ...
    ],
    'as access' => [
        'class' => 'mdm\admin\components\AccessControl',
        // yii2-admin access behavior options
    ],