请问webman支持多级控制器吗,如果支持改如何访问

我现在要做 api的版本 管理 例如 api应用下面路径是这样的 app ----api -------controller ---------V1 ------------UserController.php 该如何访问 use控制器的 Index方法呢 tp的 访问是 admin/V1.User/index...

寒塘冷月 发表与 2022-06-29 941 浏览 2 回答
phar打包后没办法显示验证码

ErrorException: imagettfbbox(): Could not find/open font in phar:///www/wwwroot/game.com/build/webman.phar/vendor/gregwar/captcha/src/Gregwar/Captcha/CaptchaBuilder.php:345 Stack trace: 没办法显示验证码,直接报错,用的是官方推荐的验证...

a178251115 发表与 2022-06-29 1784 浏览 3 回答
求帮忙,think-template关于include包含文件 动态路径问题

webman里面 第一次用think-template做的后台 想做多套模板,方便用户自己选择喜欢的模板 模板需要包含不同的在公用文件(header.html,footer.html)里包含不同文件下的的文件 目前是在$webpath里做的文章,根据用户的选中的模板 赋予不同的路径 模板: {include file="$wpath/common/header" /} ... {include f...

1619443919 发表与 2022-06-14 844 浏览 2 回答
phar 打包后 问题

PHP Warning: mkdir(): Read-only file system in build/webman.phar/vendor/webman/console/src/Application.php on line 24 Warning: mkdir(): Read-only file system in build/webman.phar/vendor/webman/console/src/Appl...

yzh52521 发表与 2022-04-29 2569 浏览 1 回答
在GatewayWorker怎样发送http请求?

我是PHP小白,有没有人可以指点一下php怎样发送http请求? 我现在的需求是 在onWebSocketConnect拿到token时,向我的服务器发送一个请求去校验这个token的合法性。但是这个请求我不会写,有人可以帮我一下吗。 以下代码是我现在的请求方法,但是他会报错 $url = "https://baidu.com"; $ch = curl_init();...

尚山 发表与 2022-04-21 1202 浏览 2 回答
插件目录使用路由访问静态文件

按照群主大佬的方法试了一下 https://www.workerman.net/a/1305 似乎只能访问了html文件,第二层static目录里面的css和js图片等资源无法访问呀 错误截图:...

楚羽幽 发表与 2022-03-21 2023 浏览 1 回答
安装composer包后运行是报错 middleware think\middleware\Throttle::process not exsits

第一次接触workerman 安装topthink/think-throttle 加入中间件后运行包这个错误。 请教下。这个我怎么处理呢?...

qinhai269 发表与 2022-02-15 881 浏览 2 回答

北月

3580
积分
0
获赞数
0
粉丝数
2021-12-01 加入
🔝