2
私はyii2の初心者です。私は、誰もが並べ替えるのを助けることができる、それがエラーを与える=クラスのkartik \ダイアログ\ダイアログが「 が、私は今も、それは誤り不明なプロパティを設定する:yii grid GridView :: export
にSetting unknown property: yii\grid\GridView::export
を与えているyii2 dialodウィジェットをインストール見つからない、私のプロジェクトでyii2エクスポートメニューをインストールしていましたそれ?
エラーが
Unknown Property – yii\base\UnknownPropertyException
Setting unknown property: yii\grid\GridView::export
in C:\xampp\htdocs\yii2-my-app\vendor\yiisoft\yii2\base\Component.php at line 201
192193194195196197198199200201202203204205206207208209210 $behavior->$name = $value;
return;
}
}
if (method_exists($this, 'get' . $name)) {
throw new InvalidCallException('Setting read-only property: ' . get_class($this) . '::' . $name);
}
throw new UnknownPropertyException('Setting unknown property: ' . get_class($this) . '::' . $name);
}
/**
* Checks if a property is set, i.e. defined and not null.
* This method will check in the following order and act accordingly:
*
* - a property defined by a setter: return whether the property is set
* - a property of a behavior: return whether the property is set
* - return `false` for non existing properties
2. in C:\xampp\htdocs\yii2-my-app\vendor\yiisoft\yii2\BaseYii.php at line 529 – yii\base\Component::__set('export', ['fontAwesome' => true])
輸出メニューウィジェット使用することができますエラーだけではありません。表示されている唯一のことは、実行している 'GridView'に' export'というプロパティがないことです。おそらくあなたは別のGridViewウィジェットをインストールしていますが、この 'export'パラメータを持つ新しいものを呼び出すのではなく、元のYii2 GridViewを呼び出しています。 –
はい、あなたは正しいです。yii2 dynagrid widgetをインストールすることで修正しました。 – Darsh