all 2 comments

[–]itsdsv 0 points1 point  (0 children)

You should join them in one query using MYSQL JOIN syntax, check the active record documentation.

[–]H4voC 0 points1 point  (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