• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controllers in Two-Level Sub Directory Fail!

[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?

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...

[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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.