create dynamic menu - 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: create dynamic menu (/showthread.php?tid=43500) |
create dynamic menu - El Forum - 07-13-2011 [eluser]Mainboard[/eluser] well, i create a dynamic menu with a db, and this is my code: My model Code: <? My Control (call site.php) Code: function members_area() { And View Code: <?php foreach($menu_enc as $menue): ?> everything works perfect except when I press some button of the menu, automatically returns to my control (site.php) waiting some function, so i want to return to some view, not to my control, so how i can to create a function to return each view in each button? create dynamic menu - El Forum - 07-13-2011 [eluser]ranjudsokomora[/eluser] Hello lvasquez, I was going to say that your anchor tag is constructed wrong, however when I tried to fix your example, and preview before I submitted, it screwed it all up... so try emailing me, [email protected], and I would be willing to help you through it. create dynamic menu - El Forum - 07-13-2011 [eluser]Mainboard[/eluser] thanks, i send you a email, thanks for your anwser and help create dynamic menu - El Forum - 07-13-2011 [eluser]Jaketoolson[/eluser] Codeigniters forum keeps messing me up to when I submit a fix... not sure whats up lol. create dynamic menu - El Forum - 07-13-2011 [eluser]Mainboard[/eluser] well, i found this link http://ellislab.com/forums/viewthread/154719/#748768 and this is my solution , i will try to implement this class and this functions, i think that is the better way to use a dynamic menu with database without having to Redirect again each view in each button in my controll, thanks for the support. create dynamic menu - El Forum - 07-14-2011 [eluser]John_Betong_002[/eluser] Try this: Code: My Control (call site.php) create dynamic menu - El Forum - 07-19-2011 [eluser]Mainboard[/eluser] i fix the problem, i create another function and works perfect Code: function call_main($sort_colums = 'link') { |