0
このコードをアプリケーション構成に追加する場合は、このコードをlinkから入手します。yii2アプリケーション構成の場所のパス
return [
'modules' => [
'admin' => [
'class' => 'mdm\admin\Module',
...
]
...
],
...
'components' => [
...
'authManager' => [
'class' => 'yii\rbac\PhpManager', // or use 'yii\rbac\DbManager'
]
],
'as access' => [
'class' => 'mdm\admin\components\AccessControl',
'allowActions' => [
'site/*',
'admin/*',
'some-controller/some-action',
// The actions listed here will be allowed to everyone including guests.
// So, 'admin/*' should not appear here in the production, of course.
// But in the earlier stages of your development, you may probably want to
// add a lot of actions here until you finally completed setting up rbac,
// otherwise you may not even take a first step.
]
],];
しかし、そのファイルはどこにありますか? 私はYii2 Advancedテンプレートを使用しています。
ハハ、おかげで再び:)、あなたがこれまで使用していますかyii2のデュアルリストボックス? – Blackjack
いいえ、私はまだそれを使用していません..あなたはあなたの別個の質問を投稿することができます..すべてはここで助ける準備ができています.. –
それを聞いて嬉しいです:DIはあなたもこの問題を別の問題のように解決することを願っています。 [リンク](http://stackoverflow.com/questions/40674952/error-when-trying-to-load-dual-listbox-in-yii2):) – Blackjack