src/MVC/View.php
protected function makeControllerUri($app_name, $use_cache, $controller, array $url_config)
    {
        static $path_cache;
        if (isset($path_cache[$app_name][$controller]) && $use_cache) {
            return $path_cache[$app_name][$controller];
        }

        $app_alias_config = $this->parseControllerAlias($app_name, $url_config['router']);
        if (isset($app_alias_config[$controller])) {
            $real_controller = $app_alias_config[$controller];
        } else {
            $real_controller = $controller;
        }

        $action_name = null;
        if (false !== strpos($real_controller, ':')) {
            list($controller_name, $action_name) = explode(':', $real_controller);
        } else {
            $controller_name = $real_controller;
        }

        $url = &$url_config['url'];
        $index = $this->makeIndex($url, true);
        $controller_path = $index . $controller_name;

        if (null !== $action_name) {
            $controller_path .= $url['dot'] . $action_name;
        }

        $path_cache[$app_name][$controller] = $controller_path;
        return $controller_path;
    }
protected function makeControllerUri($app_name, $use_cache, $controller, array $url_config)
    {
        static $path_cache;
        if (isset($path_cache[$app_name][$controller]) && $use_cache) {
            return $path_cache[$app_name][$controller];
        }

        $app_alias_config = $this->parseControllerAlias($app_name, $url_config['router']);
        if (isset($app_alias_config[$controller])) {
            $real_controller = $app_alias_config[$controller];
        } else {
            $real_controller = $controller;
        }

        $action_name = null;
        if (false !== strpos($real_controller, ':')) {
            list($controller_name, $action_name) = explode(':', $real_controller);
        } else {
            $controller_name = $real_controller;
        }

        $url = &$url_config['url'];
        $index = $this->makeIndex($url, true);
        $controller_path = $index . $controller_name;

        if (null !== $action_name) {
            $controller_path .= $url['dot'] . $action_name;
        }

        $path_cache[$app_name][$controller] = $controller_path;
        return $controller_path;
    }
生成控制器连接

@param string $app_name
@param bool $use_cache 是否使用缓存
@param string $controller
@param array $url_config
@return string
@throws CoreException