Welcome Guest, Not a member yet? Register   Sign In
CI Oriented to Modules (Problems)
#1
Bug 

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!
Luiz Felipe F M Costa
Cloud Application Developer
http://TheNets.org/
Reply


Messages In This Thread
CI Oriented to Modules (Problems) - by thenets - 01-16-2016, 10:05 PM
RE: CI Oriented to Modules (Problems) - by johnny - 01-17-2016, 02:37 AM
RE: CI Oriented to Modules (Problems) - by johnny - 01-23-2016, 09:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB