Loading Data To Different Sections of Page - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Loading Data To Different Sections of Page (/showthread.php?tid=28698) |
Loading Data To Different Sections of Page - El Forum - 03-18-2010 [eluser]jasongodoy[/eluser] Hello all! Trying to do: Display different sets of data (same model different functions) on 1 view. Stumped on: In my controller, how do I specify two calls for different data and display that data in the same view (say one set of in left column and the other set in the right column of a two column table)? Thanks for the newbie help! :down: J Loading Data To Different Sections of Page - El Forum - 03-18-2010 [eluser]foyer[/eluser] You mean something like this? Code: $this->load->model('mymodel'); <div id="left"><?=$left?></div> <div id="right"><?=$right?></div> Loading Data To Different Sections of Page - El Forum - 03-18-2010 [eluser]jasongodoy[/eluser] Thank you so much foyer. Everything worked perfectly! I appreciate your help. J Loading Data To Different Sections of Page - El Forum - 03-19-2010 [eluser]Zeeshan Rasool[/eluser] You can also use parser helper to parse these partials in your main view. |