I have two tables, lists and items. Each list can have multiple items.
I’m looking to output each list with its corresponding items, like so:
list 1
item 1
item 2
list 2
item 1
item 2
item 3
list 3
item 1
I’m having trouble figuring out how to do so. I can get the lists to
display, but I’m unsure on how to show the child items underneath each
list. I could query again from within the view, but that goes against
the MVC approach. I’m sure there’s an easy solution, I just can’t find
it.