From b6feff375b5111ab7ed5719962a97d3847de6692 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 18 Jul 2011 23:04:53 -0500 Subject: [PATCH] added comment regarding nested route directories. --- system/router.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/router.php b/system/router.php index 236950bd..d5090edf 100644 --- a/system/router.php +++ b/system/router.php @@ -73,9 +73,8 @@ class Router { { $segments = explode('/', $uri); - // Route files can be nested deep within sub-directories. To find the - // appropriate file, we work our way backward through the URI looking - // for the deepest matching file. + // Route files can be nested deep within sub-directories. To find the appropriate file, we work our + // way backward through the URI looking for the deepest matching file. foreach (array_reverse($segments, true) as $key => $value) { if (file_exists($path = APP_PATH.'routes/'.implode('/', array_slice($segments, 0, $key + 1)).EXT))