HMVC menu

#1
[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'); ?>
what worked. But now he can't find the funtion?

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

#2
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.