[eluser]vitoco[/eluser]
checking the ROUTER library ...
Code:
function _validate_request($segments)
{
// Does the requested controller exist in the root folder?
if (file_exists(APPPATH.'controllers/'.$segments[0].EXT))
{
return $segments;
}
// Is the controller in a sub-folder?
if (is_dir(APPPATH.'controllers/'.$segments[0]))
{
// Set the directory and remove it from the segment array
$this->set_directory($segments[0]);
$segments = array_slice($segments, 1);
.....
only one subfolder it's getting checked.
If you want to use folders for your controllers...it may help to organize them as modules using HMVC..