Where to put a recursive function when following MVC?
- by Glibly
Hello,
I have a recursive function being used to generate a menu on my site. The function is calling a database for each level of children in the menu, and generating html for them.
I've currently put this function in a Model part of the code, however, I feel that generating html in the model goes against the MVC.
I didn't put it in a Controller…