-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Form] Improve the doc about "recursive" rendering #1055
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@vicb Are the advantages of Thanks! |
@weaverryan when you call |
I think, however this is documented, it should also take Twig's In form themes you need to consider two levels of inheritance:
When you want to render the current block of the parent template (inheritance type 1), you should use When you want to render the block of the (any) parent form type (inheritance type 2, from any loaded theme template), you should use In any other case, for example if you split a block into multiple blocks for practical reasons (as in |
I think the best place for this is here: http://symfony.com/doc/current/cookbook/form/form_customization.html We should at least add a section somewhere that basically mirrors @bschussek's words here, as I think the end-takeaways are explained quite clearly. |
This is more or less mentioned on this page: http://symfony.com/doc/current/form/form_customization.html#referencing-base-blocks-from-an-external-template I think this issue can be closed. |
Is it possible to make recursive calls in order to decorate the base template:
The doc should give hints on when to call the flexible {% form_xxx %} vs when to call the speedy {% block() %}.
Refs:
symfony/symfony#1369
symfony/symfony#3195
The text was updated successfully, but these errors were encountered: