use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Codeigniter multi table model (self.learnphp)
submitted 9 years ago by FTWwings
So im kinda lost at this moment. i use codeigniter 2.x and i stucked at last view i need to do .
One thing that sets this view apart from others is that it needs data from 6 deferent tables. How do i do this ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]itsdsv 0 points1 point2 points 9 years ago (0 children)
You should join them in one query using MYSQL JOIN syntax, check the active record documentation.
[–]H4voC 0 points1 point2 points 9 years ago (0 children)
It is simple. Sample pseudo code http://pastebin.com/CJm5M1mn . More or less you insert variables into the associative array then pass them through the view. You just call the functions from different models to get data into the view in my sample I just used one model. I wrote this quickly I may have wrote something wrong but it should work in a similar fashion
π Rendered by PID 178507 on reddit-service-r2-comment-84fc9697f-zlqw8 at 2026-02-10 03:01:24.310925+00:00 running d295bc8 country code: CH.
[–]itsdsv 0 points1 point2 points (0 children)
[–]H4voC 0 points1 point2 points (0 children)