Changeset 3392

Show
Ignore:
Timestamp:
08/29/2008 11:14:06 AM (3 months ago)
Author:
Shadowhand
Message:

Added Router::$current_route, which holds the name of the current route that is being used.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/classes/router.php

    r3391 r3392  
    1414        public static $readonly_keys = array('regex', 'prefix'); 
    1515 
     16        public static $current_route; 
     17 
    1618        public static $current_uri  = ''; 
    1719        public static $query_string = ''; 
     
    119121 
    120122                                // A matching route has been found! 
     123                                self::$current_route = $name; 
     124 
    121125                                return TRUE; 
    122126                        }