Welcome Guest, Not a member yet? Register   Sign In
Modular extensions hmvc: specify what to load
#1

[eluser]greku13[/eluser]
Hi,

I'm using codeigniter with modular extensions. I have a custom MY_Controller class. My_controller class, loads some language files and a module may also load some files. Currently, if there is a language file that as the same name in the module directory, that one is loaded instead of the one from the main application. An easy solution is to say that it is not allowed to name the language files in your module the same way as the one in the main application.

But it could be nice, to be able to force the load method to take the one from the main application no?

It is also the case for the model. I get the problem because I have to load models and languages from the main application to run a module controller.

It can even be dangerous, as a file within a module may be loaded instead of the one from the main application.

Conclusion is that I don't really like the idea that the file is located automatically when it is not needed. (It is also too much code for nothing)

Feel free to ask me questions about that or give me solution.




Theme © iAndrew 2016 - Forum software by © MyBB