Sub sub-folders not working in controllers |
[eluser]adamp1[/eluser]
The problem with not having nested sub folders is you normally have one to separate admin controllers from public controllers. Now you can have more sub folders like this 'admin' one for the public area, but you can't have any for the admin area (since where already 1 folder deep). Which means all your admin controllers must be in a single folder. Now say I have a hugely complex backend and its spread across many many controllers. I don't want all these in a single folder, yes it could work but its horrid to work with. So a little example, if you want the following the current setup is fine: Code: /admin But if I have many controllers which are all related, but are so individually complex I don't want them in a single controller we end up with this. (Lets say each controller is 1000 lines long and each have their own add/edit/delete option) Code: /admin Now as you can see that's not very nice. Now some say use routes, but using routes that's another part of the program to break and update if I want to add something. Why add more complexity if you can use folders to do the job? The way CI is setup at the moment for controllers is crazy to me atm. One last thing, if the change proposed in this was implemented it wouldn't break any old code, so if you didn't want to use it, you don't have to.post |
Messages In This Thread |
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 10:20 AM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 10:23 AM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 10:29 AM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 10:34 AM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 10:41 AM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 10:54 AM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 10:58 AM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 11:09 AM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 11:36 AM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 01:20 PM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 01:32 PM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 01:43 PM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 02:00 PM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 02:07 PM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 02:17 PM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 02:21 PM
Sub sub-folders not working in controllers - by El Forum - 01-22-2008, 02:38 PM
|