a bit of logic help wanted - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: a bit of logic help wanted (/showthread.php?tid=27546) |
a bit of logic help wanted - El Forum - 02-14-2010 [eluser]DumpProgrammer[/eluser] I have a variable in my controller that I call three times on my home page but I would like it to have different articles showing up on my page rather than have the same items three times. Here is the code Code: $data['post'] = $this->MPosts->getAllActivePosts(); a bit of logic help wanted - El Forum - 02-14-2010 [eluser]markup2go[/eluser] You want to look in your model and update the query in getAllActivePosts(). Post this function if you need help with that. a bit of logic help wanted - El Forum - 02-15-2010 [eluser]DumpProgrammer[/eluser] here is the controller Code: function index() Code: function getAllActivePosts(){ |