5

(Sr. Dev) Oh right, you can't do that in the controller.
(Me) I can't do what?
(Sr. Dev) That thing.
(Me) Call another controller from the controller?
(Sr. Dev) Yep.
(Me) Where is supposed to be called?
(Sr. Dev) From the view.
(Me) But what is supposed the controller to be used for?
(Me) What is supposed to do the controller?
(Sr. Dev) The controller pass data to the inner classes. (Controller > Manager > Domain Object > DAO)

I ended calling 3 controllers methods from the view in 4 different views everytime...

Comments
  • 0
    Keep your code in separate chunks and use esi tags to render them, that way you can cache them all separately with Varnish or something :) follow SRP where possible
  • 1
    😂 Happened with me !
  • 0
    You can do whatever you want, fuck the standards. There are also helpers you know?
Add Comment