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

[eluser]WanWizard[/eluser]
Not too complicated, if you think in widgets and loose coupling.

I use modules, where module controller method produce html (via module views) that generate a widget. The local in the main app controller inserts those in a template.

You can do that in CI, but you'll need a modular solution, as native CI doesn't support controllers calling controllers, which makes it a bit more complicated.

You can use @brucebat's suggestion too, but given the fact that widgets can appear on any page, and in different locations, you'll have to repeat a lot of code, which goes against DRY.


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