{"action":"opened","issue":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/653","labels_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/653/labels{/name}","comments_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/653/comments","events_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/653/events","html_url":"https://github.com/EC-CUBE/ec-cube/issues/653","id":100904805,"number":653,"title":"form出力時に{{ form_rest(form) }}を記載する","user":{"login":"shinichi-takahashi","id":9044511,"avatar_url":"https://avatars.githubusercontent.com/u/9044511?v=3","gravatar_id":"","url":"https://api.github.com/users/shinichi-takahashi","html_url":"https://github.com/shinichi-takahashi","followers_url":"https://api.github.com/users/shinichi-takahashi/followers","following_url":"https://api.github.com/users/shinichi-takahashi/following{/other_user}","gists_url":"https://api.github.com/users/shinichi-takahashi/gists{/gist_id}","starred_url":"https://api.github.com/users/shinichi-takahashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinichi-takahashi/subscriptions","organizations_url":"https://api.github.com/users/shinichi-takahashi/orgs","repos_url":"https://api.github.com/users/shinichi-takahashi/repos","events_url":"https://api.github.com/users/shinichi-takahashi/events{/privacy}","received_events_url":"https://api.github.com/users/shinichi-takahashi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-14T01:04:30Z","updated_at":"2015-08-14T01:04:30Z","closed_at":null,"body":"現状、FormBuilderにて構築したFormを `{{ form_widget(form.xxx) }}` として出力していますが、これだけだとFormExtensionで拡張した際に、テンプレートの拡張も必要になり、form_widgetの恩恵のひとつを受けられません。\r\n\r\nform出力の末に `{{ form_rest(form) }}` とすることで、拡張が非常に容易になるため、formを描画している全てのページに記載したいです。\r\n具体的なメリットは、以下の `2.` の処理をまったく記載しなくてよくなります。\r\n\r\n1. FormExtensionで対象となるFormを拡張\r\n2. RenderEventでテンプレートを拡張\r\n3. Middlewareで拡張したFormの値を加工・登録"}}