Welcome Guest, Not a member yet? Register   Sign In
Collect the data
#1

[eluser]Unknown[/eluser]
Im a newbie the CI.

First I want to ask something about collecting data from database (model) in controller and send it to view.

Assume as the Facebook wall. I collect the data by using model method such as "getUserWall()" and I get the wall contents of the user. Then I have to collect those wall's comments mean it can be more than one comment per each wall message.

How can I get walls and comments with the good performance? plz give me the code in controller and view.

Ps. in view, I use Smarty.

Thank you so much for ur answer(s).

Best Regard.




Theme © iAndrew 2016 - Forum software by © MyBB