Welcome Guest, Not a member yet? Register   Sign In
Using Jamie Rumbelow's MY Model
#1

[eluser]xtremer360[/eluser]
I have a question I'm using Jamie Rumbelow's MY_Model as my model and I'm trying to figure out how I can add a field from a separate table.

Site Pages- id, page_name, page_slug, date_created, author_id, sort_order

I do a get all function run to get all the records of the site pages. It returns the array correctly however when it does it returns the value of the author_id which I need it to get the actual user's name from a user's table.

Users - id, username, first_name, last_name

So the author_id equals the id of the user table and it needs to select the first name and last name. I'm not sure how to pull this off with this MY_Model.

Has anyone else tried doing this before?


Messages In This Thread
Using Jamie Rumbelow's MY Model - by El Forum - 04-17-2013, 11:59 AM
Using Jamie Rumbelow's MY Model - by El Forum - 04-18-2013, 01:37 AM
Using Jamie Rumbelow's MY Model - by El Forum - 04-18-2013, 09:54 AM
Using Jamie Rumbelow's MY Model - by El Forum - 04-21-2013, 01:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB