-
Если сделать гибкое подключение в контролере
use developeruz\db_rbac\behaviors\AccessBehavior;
//поведение
public function behaviors()
return [
'as AccessBehavior' => [
'class' => AccessBehavior::clas…
-
When I change module layout to my layout in config (as in v2.0)
``` php
'admin' => [
'class' => 'mdm\admin\Module',
'layout' => '@backend/views/layouts/main', // defau…
-
Obviously the user management does not stop at the create, read, update,delete or login and register. Almost of web appliation need RBAC feature.
Before do this i want to study more about RBAC for mo…
-
Upholding foreign key constraints for table 'auth_item', entry 'user/user/index', key 1 would lead to a duplicate entry
-
D:\open\OpenServer\domains\localhost\yii2rbac>composer require developeruz/yii2-db-rbac "*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencie…
-
When doing "yii rbac/init" an error appears: PHP Compile Error 'yii\base\ErrorException' with message 'Declaration of common\rbac\rules\AuthorRule::execute() must be compatible with yii\rbac\Rule::exe…
-
```
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['post'],
],
…
-
I'm writing an step by step installer script which in one step it tries to run some database migrations located in a folder. To do this I create a console Yii application and use `runAction()` method …
hesna updated
9 years ago
-
when trying to access ?r=auditing/default/trail
1. in D:\wamp\www\basic\vendor\yiisoft\yii2\web\User.php
2. $access = $auth->checkAccess($this->getId(), $permissionName, $params);
I'm using yii2-user…
-
Is there some layouts file missing?How can I change to form layout?!