CodeIgniter Forums
How do I display a list of items and sub items from two different tables - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How do I display a list of items and sub items from two different tables (/showthread.php?tid=9815)



How do I display a list of items and sub items from two different tables - El Forum - 07-09-2008

[eluser]Dan Bowling[/eluser]
I'm new to MVC, so I'm a little confused on this simple task.

I'm basically trying to show a series of items (in one table) that each have another set of items belonging to them (in another table, related through a foreign key).

I want my output like this:

Section
-item
-item
Section
-item
Section
-item

How do I set up this sort of MVC with CI?