I’m trying to implement an array controller that uses a list of games as its model. Now I I’d to like have two child controller to this array controller as well that each have their own model.
One is for sorting and the other is for filtering the list of games represented in the parent controller. They are both array controllers each back by their own models being a list of sorting options and a list of filtering options. Neither of these lists of options will be static which is why the user needs to add/remove options from either child controllers.
So while all three controllers ( parent and 2 children ) are backed by their own models, they all affect the list of games.
Can anybody steer me in the right direction for a pattern to accomplish this? As far as I know a controller can only have one child.
I also do not want the child controllers to affect the route. Every user will have their own list of filters and sorting options.