質問 > その他 > FormTypeのsubmitのエラーについて |
その他
スレッド表示 | 古いものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
yuy-tank |
投稿日時: 2017/12/19 11:54
対応状況: 確認中
|
一人前 登録日: 2017/11/10 居住地: 投稿: 72 |
FormTypeのsubmitのエラーについて カスタムでフォームタイプを作り、
$builder ->add('save', 'submit', array( 'attr' => array('class' => 'save'), )); として、Twigファイルで {{ form_widget(form.save) }} としてもエラーになります。'submit'を'text'にするとテキストが表示されるので、他は間違ってないと想います。ちなみにエラーメッセージは以下の二つです。 (admin_formはtwigファイルとFormTypeの名前です。) 1.Unable to render the form as none of the following blocks exist: "_admin_form_save_errors", "submit_errors", "button_errors". 2.An exception has been thrown during the rendering of a template ("Unable to render the form as none of the following blocks exist: "_admin_form_save_errors", "submit_errors", "button_errors"." 宜しければ表示できない原因を教えてください |
スレッド表示 | 古いものから | 前のトピック | 次のトピック | トップ |