diff --git a/system/route/finder.php b/system/route/finder.php index 4e3ea030..53eaa420 100644 --- a/system/route/finder.php +++ b/system/route/finder.php @@ -69,6 +69,8 @@ class Finder { { $routes = array(); + // Since route files can be nested deep within the route directory, we need to + // recursively spin through the directory to find every file. $directoryIterator = new \RecursiveDirectoryIterator(APP_PATH.'routes'); $recursiveIterator = new \RecursiveIteratorIterator($directoryIterator, \RecursiveIteratorIterator::SELF_FIRST);