[eluser]Unknown[/eluser]
Thanks to the advise of Buso, i made this change which seems to work and give you 1 (ONE) extra level or sub-folders.
Have struggled add more levels, but this is all i need.
So anyway, goto system/libraries/Router.php, goto line 211 (just below // Set the directory and remove it from the segment array) and insert this code
Code:
if(is_dir(APPPATH.'controllers/'.$segments[0].'/'.$segments[1])){
$this->set_directory($segments[0].'/'.$segments[1]);
$segments = array_slice($segments, 2);
}else{
$this->set_directory($segments[0]);
$segments = array_slice($segments, 1);
}
instead of this code
Code:
$this->set_directory($segments[0]);
$segments = array_slice($segments, 1);
hope this helps someone!