Welcome Guest, Not a member yet? Register   Sign In
Controllers in Two-Level Sub Directory Fail!
#1

[eluser]Phil Sturgeon[/eluser]
I have most of my controllers in /controllers/admincp/ as this is the biggest part of my system. However with the increase in files, i tried making another subdirectory /controllers/admincp/settings/ and no joy.

Tried making /admincp/test/stuff with in index() that runs echo "poo"; but nothing there either, I just get 404 every time.

I assume this is not personal error, is this a bug others have ever run into?
#2

[eluser]gunter[/eluser]
hi pyro,
no, that´s not a bug, since almost 10 months (?) CI supports subdirectories - but only one level, that should be enough for most applications, I think.
that means you have one to much...
#3

[eluser]Phil Sturgeon[/eluser]
Not so. ATM my admin panel is very big and the settings controller will be MASSIVE even with almost all of the code in models. By using a sub directory and a controller for each settings page that is fine.

I can of course use /admincp/settings_backup_database.php which is annoying and retarded, but means my directory structure is very cluttered.

I will be modifying the system core to accept two sub-directories as one really isn't enough. It should be on the user-guide that only one dir works.




Theme © iAndrew 2016 - Forum software by © MyBB