Welcome Guest, Not a member yet? Register   Sign In
Default controller problem with controller in a subfolder
#1

[eluser]Macros[/eluser]
This seems to have been mentioned before, but still seems to be a bug 1.6.2.

Basically, if the default controller looks like:
Code:
$route['default_controller'] = "folder/controller";

Then the class file is loaded... but the class can't be found.

CodeIgniter.php:
Code:
Line 154: include(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->fetch_class().EXT);
Line 169: $class  = $RTR->fetch_class();

Using the route above, then
Code:
$class = 'folder/controller'
Code:
Line 173: if ( ! class_exists($class)...

This will return false, as the class name being checked is "folder/controller", but the REAL class name is "controller", and it was loaded in the include line.

Cameron.


Messages In This Thread
Default controller problem with controller in a subfolder - by El Forum - 06-03-2008, 04:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB