src/RawPHP/RawRouter/Router.php
private function _buildControllerName( $name )
    {
        $name = strtoupper( $name[ 0 ] ) . substr( $name, 1 );

        $controller = $name;

        $namespace = NULL;

        foreach ( $this->namespaces as $ns )
        {
            if ( class_exists( $ns . $controller ) )
            {
                $namespace  = $ns;
                $controller = $ns . $controller;

                break;
            }
        }

        if ( NULL === $namespace )
        {
            return strtoupper( $this->defaultController[ 0 ] )
            . substr( $this->defaultController, 1 ) . 'Controller';
        }
        else
        {
            return $controller;
        }
    }
private function _buildControllerName( $name )
    {
        $name = strtoupper( $name[ 0 ] ) . substr( $name, 1 );

        $controller = $name;

        $namespace = NULL;

        foreach ( $this->namespaces as $ns )
        {
            if ( class_exists( $ns . $controller ) )
            {
                $namespace  = $ns;
                $controller = $ns . $controller;

                break;
            }
        }

        if ( NULL === $namespace )
        {
            return strtoupper( $this->defaultController[ 0 ] )
            . substr( $this->defaultController, 1 ) . 'Controller';
        }
        else
        {
            return $controller;
        }
    }
Constructs the controller name.

@param string $name the controller name

@return string the name