Form Flashcards

1
Q

comment debugger un Form SF

A

php bin/console debug:form BirthdayType

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

quel class doivent extends les FormType SF

A

AbstractType

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

comment un form fait pour capter la réponse du user qui l’a rempli

A

$form->handleRequest($request)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

que ce passe t-il si un form à une method PUT, PATCH ou DELETE

A

le methode HTTP reste GET/POST mais un champ caché est ajouter au form pour dire à SF que c’est un PUT, PATCH ou DELETE (kernel option : http_method_override)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly