![]() |
moduler page how in CI? - 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: moduler page how in CI? (/showthread.php?tid=12691) |
moduler page how in CI? - El Forum - 10-28-2008 [eluser]umefarooq[/eluser] Hi i want to know that how we can have different modules on one page using in controller and view like joomla we can have we can have left, right or top modules and have different code and query can we some thing like this in CI different files having their own queries. moduler page how in CI? - El Forum - 10-28-2008 [eluser]bigtimslim[/eluser] Were you drunk when you wrote this? It's ok with me if you were because I am as I'm responding haha. I'm sure what you are wanting can be accomplished, but whether its feasible for your situation I don't know. Try going through all of the documentation. moduler page how in CI? - El Forum - 10-28-2008 [eluser]wr5aw[/eluser] Send your module view outputs to an array. Then echo each variable from the array in a main template: Controller: Code: $data['module1'] = $this->load->view("module1", $array1, TRUE); View: Code: <div id='module1'><?php echo $module1; ?></div> |