PHP code example of s4studio / yii2-rbac-plus
1. Go to this page and download the library: Download s4studio/yii2-rbac-plus 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/ */
s4studio / yii2-rbac-plus example snippets
'userModelExtraDataColumls' => [
[
'attributes' => 'created_at',
'format' => 'datetime',
]
],
'beforeCreateController' => function($route) {
/**
*@var string $route The route consisting of module, controller and action IDs.
*/
}
'beforeAction' => function($action) {
/**
*@var yii\base\Action $action the action to be executed.
*/
}