Welcome Guest, Not a member yet? Register   Sign In
Need to integrate navigation
#2

[eluser]mlage[/eluser]
Check out the Template Parser class (not automatically loaded)

http://ellislab.com/codeigniter/user-gui...arser.html

It allows for dynamic creation of menus from a view.

That or you will have to write the php code to take your data that represents the menu, and through some kind of loop, make a string of the data and load it. You can load strings of data, like a view, like this:
Code:
$string = $this->output->get_output(); //Gets currently loaded views
$string .= $navigationCode; //$navigationCode should be the variable holding the HTML code of your dynamic navigation
$string = $this->output->set_output(); //Updates the output

I'll be watching this thread... so if you need help, just post back


Messages In This Thread
Need to integrate navigation - by El Forum - 08-02-2010, 02:45 PM
Need to integrate navigation - by El Forum - 08-02-2010, 03:15 PM
Need to integrate navigation - by El Forum - 08-03-2010, 05:03 AM
Need to integrate navigation - by El Forum - 08-11-2010, 11:41 PM
Need to integrate navigation - by El Forum - 08-12-2010, 02:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB