itstructure /
yii2-rbac-module
| 1 | <?php |
||
| 2 | |||
| 3 | use yii\widgets\ActiveForm; |
||
| 4 | use yii\helpers\{ArrayHelper, Html}; |
||
| 5 | use Itstructure\FieldWidgets\{Fields, FieldType}; |
||
|
0 ignored issues
–
show
The type
Itstructure\FieldWidgets\Fields was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 6 | use Itstructure\RbacModule\Module; |
||
| 7 | |||
| 8 | /* @var $this yii\web\View */ |
||
| 9 | /* @var $model Itstructure\RbacModule\models\ProfileValidate */ |
||
| 10 | /* @var $form yii\widgets\ActiveForm */ |
||
| 11 | /* @var $roles yii\rbac\Role[] */ |
||
| 12 | ?> |
||
| 13 | |||
| 14 | <div class="profile-form"> |
||
| 15 | |||
| 16 | <?php $form = ActiveForm::begin(); ?> |
||
| 17 | |||
| 18 | <div class="row"> |
||
| 19 | <div class="col-md-4"> |
||
| 20 | |||
| 21 | <?php echo Fields::widget([ |
||
| 22 | 'fields' => [ |
||
| 23 | [ |
||
| 24 | 'name' => 'roles', |
||
| 25 | 'type' => FieldType::FIELD_TYPE_CHECKBOX, |
||
| 26 | 'data' => ArrayHelper::map($roles, 'name', 'name'), |
||
| 27 | 'label' => Module::t('profiles', 'Roles') |
||
| 28 | ] |
||
| 29 | ], |
||
| 30 | 'model' => $model, |
||
| 31 | 'form' => $form, |
||
| 32 | ]) ?> |
||
| 33 | |||
| 34 | </div> |
||
| 35 | </div> |
||
| 36 | |||
| 37 | |||
| 38 | <div class="form-group"> |
||
| 39 | <?php echo Html::submitButton(Module::t('main', 'Save'), ['class' => 'btn btn-success']) ?> |
||
| 40 | </div> |
||
| 41 | |||
| 42 | <?php ActiveForm::end(); ?> |
||
| 43 | |||
| 44 | </div> |
||
| 45 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths