CodeIgniter Forums

Full Version: Menu loading function into div
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi again,

I'm trying to do something like this:

I got 3 div's in view, menu, content and footer. In controller I got index() which is loading all 3 div in view but I want, after clicking in link from menu, to load some content from function in the same controller to content div, but I dont want to have all the code about footer and the menu in that specific funtion, any ideas how can i achieve that?

El Forum

I'd like to help but I'm not sure that I understand your question. Are you trying to load new information into only part of the page without the browser redirecting to the other controller function (and thus reloading the menu and footer)? If so - that's more of an Ajax question than a CodeIgniter question.

El Forum

Sounds like your wanting a AJAX call... and if not I would suggest using a template library