|
@@ -256,11 +256,12 @@ class Router {
|
|
|
*/
|
|
|
protected static function controller_key($segments, $directory)
|
|
|
{
|
|
|
+ $reverse = array_reverse($segments, true);
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
- $reverse = array_reverse($segments, true);
|
|
|
-
|
|
|
+
|
|
|
foreach ($reverse as $key => $value)
|
|
|
{
|
|
|
$controller = implode('/', array_slice($segments, 0, $key + 1)).EXT;
|