MVC and request handling · Question 9 of 12

What is a method initializeCreateAction() in an Extbase controller suitable for?

2 answers are correct. Medium

Show answer

Answer

  • A Preparations that only createAction() needs
  • B Adjusting the property mapping for the argument of createAction(), e.g. a date format

Explanation

Extbase calls initializeAction() and then initialize<Action>Action() before the request arguments are mapped to the action parameters. That is why it is the place to set mapping rules such as a date format for exactly this action. initializeAction() applies to all actions, and no initialize method runs after the action.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications