Hi Zacharias.
Actually, that’s not what I meant. I’m sorry if I was vague. Let me give an example.
For instance, we’re using th URL helper. On a typical non-modular codeigniter, to redirect to a page, you say,
redirect("controller/action")
... when we do this under a matchbox module, we say,..
redirect("module/controller/action")
... it picks up the base_url from the general config.php file then adds module/controller/action.
Now, what I kind of looking for is a way to work inside my module as if I do not know the name and/or directory name of the module. So that when I redirect inside my module, I will just instead say…
redirect("controller/action")
as if the module is independent. This is important to me because there will be a case where I will just copy the entire module and rename as another module with the same function. It is easier to program a module as if it is independent. That’s why, I was think if somehow, for every module, there is a way to override some config on config.php for a particular module. For instance, if the config.php’s value for base_url is http://domain.com, do we have a way to change that value ONLY in a module and make it’s value http://domain.com/module instead? Or is there any solution?