-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Better explain that form types should be unique in the application #5076
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
12b77af
Better explain that form types should be unique in the application
javiereguiluz d47e751
Fixed syntax issues and provided more information
javiereguiluz 52a5551
Recommend a better way to standardize application form types
javiereguiluz 0eb149b
Recommend app_ instead of app. as form type prefix
javiereguiluz 7a78532
Fixed a minor grammar issue
javiereguiluz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1057,9 +1057,16 @@ that will house the logic for building the task form:: | |
} | ||
} | ||
|
||
This new class contains all the directions needed to create the task form | ||
(note that the ``getName()`` method should return a unique identifier for this | ||
form "type"). It can be used to quickly build a form object in the controller:: | ||
.. caution:: | ||
|
||
The ``getName()`` method returns the identifier of this form "type". These | ||
identifiers must be unique in the application. Unless you want to override | ||
a built-in type, they should be different from the default Symfony types | ||
and from any type defined by a third-party bundle installed in you application. | ||
Consider prefixing your types with ``app.`` to avoid identifier collisions. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right. It's done in 0eb149b. Thanks. |
||
|
||
This new class contains all the directions needed to create the task form. It can | ||
be used to quickly build a form object in the controller:: | ||
|
||
// src/AppBundle/Controller/DefaultController.php | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your