I’m currently doing a report interface, and one of the sections must give some summaries. But, depending on the search/filter options the user choose, I’ve some useless columns and I don’t want to display them.
I can do it in the controler and switch to the appropriate view depending on the search parameters, or doing it directly in the view.
What is, in your opinion, the best way ? One of my ideas ? Another one ?