~/talk

Symfony Forms: Dos and Don'ts

Talkat SymfonyLive Cologne 2016 · 2016-04-27..04-29· [php]
slides:none on file

Shows concrete rules: register reusable form types as services (avoid anonymous types), name them with the Type suffix, and keep only presentation logic there; wire options via configureOptions and prefer explicit option defaults so upgrades stay compatible; handle complex conversions with data transformers instead of stuffing logic into controllers; for selects use choice_label, choice_value, property_path and choice_attr to control labels, values and attributes; bind complex submissions to DTOs rather than entities and use the FormBuilder/FormFactory workflow (createBuilder, submit/handleRequest) consistently.

AI-written summary · about

  1. 0:00Introduction to Symfony Forms
  2. 3:55Common form mistakes
  3. 8:15Dropdown and choice types
  4. 12:37Form types and services
  5. 17:18Form builders and prototypes
  6. 21:01Best practices overview
  7. 25:54Event handling in forms
  8. 30:14Validation and constraints
  9. 35:14Advanced form techniques
  10. 40:36Real-world form examples
  11. 45:17Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.