Answer the question
In order to leave comments, you need to log in
Where is the best place to generate content?
I wrote a code that collects the html code of the menu from an array with parameters. The question is that I don’t know where such code should be placed, in the controller to collect everything in $content and give it to the show, or should the view be involved in such matters?
Answer the question
In order to leave comments, you need to log in
In the helper
And it would be better to collect into some variable, and not immediately echo out
Or make a separate view and method
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question