我使用模態創建了窗體。問題是在views/index.php中的按鈕「創建」。 Proccess測試分頁&搜索成功,但之後當我點擊按鈕「創建」在views/index.php。表單創建與模式不顯示,我不知道爲什麼。 在控制器 public function actionCreate()
{
$model = new Donatur();
if ($mo
我有以下我yii2-basic-appconfig/params.php: <?php
$siteName = Yii::t('app','Site Name'); //previously, this value had been placed directly in the array just a try to make it available to the translation
r
在我的模型類中的自定義驗證功能。我需要使用JavaScript代碼。爲我所用registerJs功能,但我得到的錯誤: - 調用未定義的函數registerJs() 我也試圖通過包括視圖類即View::registerJs()調用它,但它也給錯誤稱爲 Non-static method yii\web\View::registerJs() should not be called statical