B
B
BonBon Slick2017-11-24 01:26:21
symfony
BonBon Slick, 2017-11-24 01:26:21

Why do all Symfony methods end with Action?

Does it give something other than visual load?
Maybe a hint? Or an autocomplete, or something else?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2017-11-24
@BonBonSlick

To make it clear that this is an action.
In general, in this programming of yours, almost most of the work is aimed not at making it work at least somehow, but at making the code readable and understandable.

F
Flasher, 2017-11-25
@Flasher

Action can be omitted, but it's good practice for CRUD to add an Action at the end. This also applies to Form for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question