Welcome Guest, Not a member yet? Register   Sign In
model for two tables
#1

[eluser]jared4444[/eluser]
Hi,
I am new to CI and am not sure what to do.

I was building models based on tables and it worked well.
I have these tables
category
item

categories contain many items.

When I want to get all items from a category, how should I do that? Should I make another model category_item? Is there a better way?

I am confused as to how to proceed when I am dealing with more than one table at a time.


Messages In This Thread
model for two tables - by El Forum - 01-03-2010, 02:14 PM
model for two tables - by El Forum - 01-03-2010, 03:44 PM
model for two tables - by El Forum - 01-03-2010, 03:48 PM
model for two tables - by El Forum - 01-03-2010, 03:49 PM
model for two tables - by El Forum - 01-03-2010, 03:57 PM
model for two tables - by El Forum - 01-03-2010, 03:59 PM
model for two tables - by El Forum - 01-03-2010, 04:02 PM
model for two tables - by El Forum - 01-03-2010, 04:06 PM
model for two tables - by El Forum - 01-11-2010, 11:43 PM
model for two tables - by El Forum - 01-12-2010, 02:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB