I understand that in View we should not put something too complex. It should be put it in the Controller.
Now I have a case that I don’t know what approach is a best practice. I create a complex table, it’s kinda like a Pivot table…
The problem is the table is too large, the cell’s value is too many. I don’t think store the data to array and pass when calling render() method is a good one. But putting the source code to process the cell’s value in the view is making the View’s code ugly too. I don’t know what approach is better. What should I do? Which one should I choose, or is there any way?
By the way, in a good practice way, may I calling function in view??
Yeah, currently I am using this method too… But one drawback is, when there are too many function in one static class, it might become confusing. But for this time being, guess this is the best approach…