Welcome Guest, Not a member yet? Register   Sign In
Module system
#1

[eluser]daveario[/eluser]
For my latest work I need an extensible module system for CI. A module has to handle database connections and views.

The only problem is:
A module controller extends a model. If I want to address a function that displays a page, I am doing it with another controller who analyses the url, for example:
Code:
modulename/page
The controller knows which module is meant and which function it should call.

But I can't call the function because the module name is a variable.

Code:
$this->MODULENAME->FUNCTION();

$this->$module->$function(); # doesn't work.

Do you know how to solve that?
Thanks in advance! Smile


Messages In This Thread
Module system - by El Forum - 08-06-2009, 11:23 AM
Module system - by El Forum - 08-06-2009, 04:40 PM
Module system - by El Forum - 08-07-2009, 01:10 AM
Module system - by El Forum - 08-07-2009, 02:07 AM
Module system - by El Forum - 08-07-2009, 01:46 PM
Module system - by El Forum - 08-07-2009, 09:10 PM
Module system - by El Forum - 08-09-2009, 04:47 PM
Module system - by El Forum - 08-09-2009, 07:47 PM
Module system - by El Forum - 08-10-2009, 12:49 AM
Module system - by El Forum - 08-10-2009, 02:43 AM
Module system - by El Forum - 08-10-2009, 06:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB