src/CarteBlanche/App/Locator.php
public static function locateController($ctrl)
    {
        $ctrl = TextHelper::toCamelCase($ctrl);
        if (Loader::classExists($ctrl)) {
            return $ctrl;
        }

       // from the application
        $controller = Kernel::CONTROLLER_DEFAULT_NAMESPACE.$ctrl;
        if (false!==($_found = Loader::autoload($controller))) {
            return $_found;
        }

        // from CarteBlanche
        $controller = Kernel::CARTE_BLANCHE_NAMESPACE.'\\'.Kernel::CONTROLLER_DEFAULT_NAMESPACE.$ctrl;
        if (false!==($_found = Loader::autoload($controller))) {
            return $_found;
        }

        // with a full name
        $controller .= Kernel::CONTROLLER_SUFFIX;
        if (false!==($_found = Loader::autoload($controller))) {
            return $_found;
        }

        // from bundles
        if (false!==($_found = Loader::loadClass($ctrl, 'Controller', true))) {
            return $_found;
        }
        // with a full name
        if (false!==($_found = Loader::loadClass($ctrl.Kernel::CONTROLLER_SUFFIX, 'Controller', true))) {
            return $_found;
        }
        return false;
    }
public static function locateController($ctrl)
    {
        $ctrl = TextHelper::toCamelCase($ctrl);
        if (Loader::classExists($ctrl)) {
            return $ctrl;
        }

       // from the application
        $controller = Kernel::CONTROLLER_DEFAULT_NAMESPACE.$ctrl;
        if (false!==($_found = Loader::autoload($controller))) {
            return $_found;
        }

        // from CarteBlanche
        $controller = Kernel::CARTE_BLANCHE_NAMESPACE.'\\'.Kernel::CONTROLLER_DEFAULT_NAMESPACE.$ctrl;
        if (false!==($_found = Loader::autoload($controller))) {
            return $_found;
        }

        // with a full name
        $controller .= Kernel::CONTROLLER_SUFFIX;
        if (false!==($_found = Loader::autoload($controller))) {
            return $_found;
        }

        // from bundles
        if (false!==($_found = Loader::loadClass($ctrl, 'Controller', true))) {
            return $_found;
        }
        // with a full name
        if (false!==($_found = Loader::loadClass($ctrl.Kernel::CONTROLLER_SUFFIX, 'Controller', true))) {
            return $_found;
        }
        return false;
    }
Search a controller : from the app or a bundle

@param   string  $ctrl   The controller filename
@return  mixed   FALSE if nothing had been find, the filename otherwise