Answer the question
In order to leave comments, you need to log in
Do you need a layer between controller and view?
I don't have much experience. I often notice that after receiving the data in the controller, and before putting it into the view, you need to prepare certain transformations for this view. Well, for example:
Answer the question
In order to leave comments, you need to log in
1.a. Get a tree structure from the database immediately, after saving it there. Google Nested set, ajacency list, etc.
1.b. Use presenters.
1.c. Use service layer.
2.a. Use presenters.
2.b. Use service layer.
3. Use view composer/view creator.
4. In the config. And, perhaps, see point 3.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question