PHP code example of it-yakutia / yii2-rbac
1. Go to this page and download the library: Download it-yakutia/yii2-rbac 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/ */
it-yakutia / yii2-rbac example snippets
Url::toRoute('/rbac/permission/index');
Url::toRoute('/rbac/role/index');
Url::toRoute('/rbac/user/index');
php composer.phar
php yii migrate --migrationPath=@yii/rbac/migrations