1.

What Rules Do You Follow At The Time Of Creating Methods Within The Controller In Symfony?

Answer»

General rules for creating a METHOD in within the controller in Symfony.

  • Only action methods should be PUBLIC.
  • Controller methods should be short; if your controller is LONG, CONSIDER refactoring it.
  • Action methods must have the “Action” suffix
  • Action methods should return a valid response OBJECT

General rules for creating a method in within the controller in Symfony.



Discussion

No Comment Found