2016-12-26 7 views
0

enter image description hereはLaravel-バックパック/設定

代わりのテキストフィールドにフィールドを変更する方法、私は、Laravel-バックパック/設定で値]フィールドにadmin/setting/10/editページをドロップダウンを追加したいと思います。私は何か提案を感謝します。

[DB設定]フィールドで次の項目を使用しましたが、エラーが発生します。 Fields.phpライン28で

{"name":"value","label":"Value", "title":"Lightbox" ,"type":"select_from_array", 
"options":{"lightbox":"lightbox","colorbox1":"colorbox1"} 

エラー

ErrorException:未定義のインデックス:HandleExceptions-で Fields.phpライン28内の名前> handleErrorの( '8'、 '不定 インデックス:名' 、 '/Users/sokada/Code/backpack-ceci/vendor/backpack/crud/src/PanelTraits/Fields.php'、 '28'、array( 'field' => array()、 'form' => 'both'、 'complete_field_array' => array()))をFields.php 28行目の に追加します。SettingCrudController.php行のCrudPanel-> addField(array())69

Fields.phpのLine#28は以下のとおりです。

... 
    // if the label is missing, we should set it 
    if (! isset($complete_field_array['label'])) { 
     $complete_field_array['label'] = ucfirst($complete_field_array['name']); 
    } 
... 

答えて

1

あなたのコードは私のために働いていました。

enter image description here

あなたが最後にparanthesisを逃しませんでしたか?

{"name":"value","label":"Value", "title":"Lightbox" ,"type":"select_from_array", "options":{"lightbox":"lightbox","colorbox1":"colorbox1"}} 
関連する問題