HMVC menu - 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: HMVC menu (/showthread.php?tid=12559) |
HMVC menu - El Forum - 10-23-2008 [eluser]edwin87[/eluser] Hello CI! I finally got HMVC working. I like the data structure now. But i have some problems creating a menu. I have a database table named modules. In this table every module is saved. There's also a active option. So i can disable or enable a module. I can show this now in my menu which modules ara active. Then i am trying to make a link. So for example : Code: <?php anchor('news', 'News module'); ?> Now i click on the link and the module opens his page. That's good. But i want 2 options now... When i want to open a function in that controller i normally did this: Code: <?php anchor(news/whatever,'whatever'); ?> How can i do that? And i have another problem. Every time i open that module, i still have to load a header and footer page like Code: <?php $this->load->view('header');?> Is it possible that i don't have to do this every time? Many thanks HMVC menu - El Forum - 10-24-2008 [eluser]edwin87[/eluser] With the last question i think i know it. I have te make a template in codeignitor. I will search for that. Butt is ther anyone with the same problem or with a solution for the first question? Maybe there's someone with experience with creating a template and is prepared to give me a start. |