Welcome Guest, Not a member yet? Register   Sign In
Multiple controllers on 1 page
#1

[eluser]Unknown[/eluser]
Hi everybody,

I just started out with CI, and i couldn't seem to find if and (maybe) how i can use multiple controllers in 1 controller.

This may sound a bit weird, so let me explain to you what i want.

I have one main template, that i always want to load.
This contains a Menu, a content area and a sidebar.

What i would like to do/have is:
Have 1 controller that loads the menu and content area.
Have 1 controller that loads the sidebar.

The menu and content area have thing in common, like page title and such, and therefor i want them in 1 controller.
But the sidebar is always the same, and needs a bit of coding.
Now i'm trying to keep the sidebar code out of my controller, so i wouldn't have to copy-paste it all the time.

Is this possible? and if so, How can i achieve this?

Kind Regards,
Nico Kaag


Messages In This Thread
Multiple controllers on 1 page - by El Forum - 06-30-2011, 03:31 PM
Multiple controllers on 1 page - by El Forum - 06-30-2011, 03:42 PM
Multiple controllers on 1 page - by El Forum - 06-30-2011, 04:38 PM
Multiple controllers on 1 page - by El Forum - 07-01-2011, 02:37 AM
Multiple controllers on 1 page - by El Forum - 07-01-2011, 03:25 AM
Multiple controllers on 1 page - by El Forum - 07-01-2011, 03:29 AM
Multiple controllers on 1 page - by El Forum - 07-01-2011, 03:34 AM
Multiple controllers on 1 page - by El Forum - 07-01-2011, 03:49 AM
Multiple controllers on 1 page - by El Forum - 07-01-2011, 03:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB