Welcome Guest, Not a member yet? Register   Sign In
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


Messages In This Thread
HMVC menu - by El Forum - 10-23-2008, 09:21 AM
HMVC menu - by El Forum - 10-24-2008, 01:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB