Welcome Guest, Not a member yet? Register   Sign In
Need Help Modifying Core classes.
#1

[eluser]navetz[/eluser]
I previously posted this question here and got good feedback although I didn't fully understand what I was being told: http://ellislab.com/forums/viewthread/129723/

Now I have compiled enough information to know what I want code igniter to do, I'm just not sure it can do it without modifying the core.

I found a tutorial where the type of setup I want is created, the only problem is he skips over the modification of the core files where there work is done. (I have emailed him asking as well)

This is the tutorial: http://www.viddler.com/explore/elliothaughin/videos/9/

At 8:50 you can see the directory structure and see how he has his controllers set into a module folder. If you don't feel like opening the video it looks like this:

-application
-modules
-news
-controllers
-models
-views
-something else
-controllers
-models
-views

Now you can see the benefit to this right away. You can take any loosely coupled module and plug it into another system easily.

The problem with this is I don't know how to set up the routes. I still need it to work the same way as if all my controllers were in the same directory. The author of the video Elliot Haughin has it working very elegantly. He mentions he changed the library files: routes.php and loader.php and put the changed files in the applications directory.

The core file he needed to edit was CodeIgniter.php

I don't know what any of the changes were. I am off to try and make this work myself. If anyone knows how to do this or a tutorial of how to do this I would greatly appreciate it. Also if I am mistaken about anything please let me know because I am new to codeigniter and want to learn.


Messages In This Thread
Need Help Modifying Core classes. - by El Forum - 09-21-2009, 11:17 PM
Need Help Modifying Core classes. - by El Forum - 09-21-2009, 11:33 PM
Need Help Modifying Core classes. - by El Forum - 09-21-2009, 11:36 PM
Need Help Modifying Core classes. - by El Forum - 09-21-2009, 11:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB