![]() |
Getting other data output to view - 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: Getting other data output to view (/showthread.php?tid=36311) |
Getting other data output to view - El Forum - 11-28-2010 [eluser]elmne[/eluser] I need help here. If I have a view that has a link in it which points to a controller that when clicked, will use the ID within the link to return the appropriate article from the database, then load a view to display that article, how do i get the view that is loaded to display the article, to then also display other content on the same page/view? For instance, i want to use a view as a template which has a logo, banner, menu, footer. Now, each of these items are processed using given functions, for instance the menu would have to be processed by a menu function then it's data passed to the view to be displayed in the menu area. How do i get the menu to be processed and also passed to the same view template that will display the article linked to? Getting other data output to view - El Forum - 11-28-2010 [eluser]InsiteFX[/eluser] Use a MY_Controller. Creating Core System Classes InsiteFX Getting other data output to view - El Forum - 11-28-2010 [eluser]elmne[/eluser] So when i extend the controller using MY_Controller, how would it work? Do i put functions in MY_Controller within the library to display content for other areas? Where does the template get loaded? |