thinkphp-swoole 出现的问题

浏览:2383 发布日期:2019/05/28 分类:ThinkPHP5专区
访问控制器报错,不知道大家有没有遇到过 thinkphp5.1[0] HttpException in Module.php line 63
module not exists:index.php
                $available = true;
            }

            // 模块初始化
            if ($module && $available) {
                // 初始化模块
                $this->request->setModule($module);
                $this->app->init($module);
            } else {
                throw new HttpException(404, 'module not exists:' . $module);
            }
        }

        // 是否自动转换控制器和操作名
        $convert = is_bool($this->convert) ? $this->convert : $this->rule->getConfig('url_convert');
        // 获取控制器名
        $controller = strip_tags($result[1] ?: $this->rule->getConfig('default_controller'));

        $this->controller = $convert ? strtolower($controller) : $controller;
最佳答案
评论( 相关
后面还有条评论,点击查看>>