framework/basic/RouteHandler.php
public static function getHandlerByPath($path)
    {
        $result = null;
        $path   = self::prepareRoute('/'.trim($path, " /"));

        foreach (static::$routes as $key => $handler) {
            $matches = [];
            if (preg_match('#'.$key.'$#i', $path, $matches)) {
                foreach ($matches as $key => $val) {
                    if (!is_numeric($key)) {
                        $_GET[$key] = $val;
                    }
                }
                $result = $handler[1];
                break;
            }
        }
        return $result;
    }
public static function getHandlerByPath($path)
    {
        $result = null;
        $path   = self::prepareRoute('/'.trim($path, " /"));

        foreach (static::$routes as $key => $handler) {
            $matches = [];
            if (preg_match('#'.$key.'$#i', $path, $matches)) {
                foreach ($matches as $key => $val) {
                    if (!is_numeric($key)) {
                        $_GET[$key] = $val;
                    }
                }
                $result = $handler[1];
                break;
            }
        }
        return $result;
    }
public static function getHandlerByPath ( $ path ) { $ result = null ; $ path = self :: prepareRoute ( '/' . trim ( $ path , " /" ) ) ; foreach ( static :: $ routes as $ key => $ handler ) { $ matches = [ ] ; if ( preg_match ( '#' . $ key . '$#i' , $ path , $ matches ) ) { foreach ( $ matches as $ key => $ val ) { if ( ! is_numeric ( $ key ) ) { $ _GET [ $ key ] = $ val ; } } $ result = $ handler [ 1 ] ; break ; } } return $ result ; }
Get handler by path

@param string $path
@return string
Get handler by path