Hi,
I'm trying to modify the CI to be oriented to Modules, not just a simple MVC.
Buy I have a lot of problems to do this from "application" directory. Sometimes the "core" and "hooks" files doesn't work as expected.
I found some problems:
- I can't change the path of "controllers", "models" and "views" from just a variable or constant
- I can't replace "CodeIgniter.php" file from "~/application/core"
- I don't know if I'm missing something, but I can't replace just a Class from a core file. I can just replace all core file content.
Talking just a little about my ideas:
I'm thing about create a framework, based on CI security, to work with modules. For exemple:
- If I'll develop a login system, this will be my tree of files
application/
application/modules/
application/modules/login/
application/modules/login/Controller_login.php
application/modules/login/Model_login.php
application/modules/login/View_index.php
application/modules/login/style.less
application/modules/login/Forge.php
application/modules/login/UnitTest.php
With this, I can reutilize my code just copying and pasting my "application/modules/login/" directory.
That's it. If somebody help me to understand CI core to do this modification, I thanks a lot!
See ya!