問題描述 路由里面配置了可選參數(shù),配置了就報(bào)錯(cuò) Route::any('/show[/area/{area}][/class/{class}][/id/{id}][/year/{year}][/page/{page}].html', [app\index\controller\Vod::class, 'show'])->name('vod/show'); FastRoute\BadRouteException:...
webman的路由參數(shù),如果不是在控制器里面獲取,在functions里面獲取,應(yīng)該怎么做 我有一個(gè)通用的方法要判斷請(qǐng)求的參數(shù),返回所有的請(qǐng)求參數(shù)給其他函數(shù)使用,如果每次都通過控制器來做,代碼量會(huì)多很多,邏輯也復(fù)雜很多,希望能有一個(gè)通用的獲取參數(shù)的方法...
路由配置: Route::any('/detail/{id:\d+}.html', [app\index\controller\Vod::class, 'detail']); 然后訪問xxxx.com/detail/123.html 通過input() 來獲取輸入的 ,打印出來是空的,想獲取id這個(gè)參數(shù)應(yīng)該怎么做?...
Route::any('/map', [app\index\controller\Map::class, 'index']); Route::any('/rss/index', [app\index\controller\Rss::class, 'index']); Route::any('/rss/baidu', [app\index\controller\Rss::class, 'baidu']); Route:...
/app/ai/message/send 這個(gè)接口發(fā)送了數(shù)據(jù)后,返回的數(shù)據(jù)php 怎么處理啊?感覺一個(gè)行一個(gè)好復(fù)雜...
問題描述 這里寫描述 webman redis-queue send 消息的時(shí)候 剛好 webman reload 不能完成消費(fèi)事件...
問題描述 這里詳細(xì)描述問題 Creation of dynamic property Workerman\Redis\Client::$brPoping is deprecated in /www/wwwroot/xxxx/vendor/workerman/redis-queue/src/Client.php:77...
現(xiàn)在php 代碼加密,有沒有好的方法啊,webman 有沒有適合的加密方法 現(xiàn)在php 代碼加密,有沒有好的方法啊,webman 有沒有適合的加密方法...
問題描述 webman 有人做出可以切換模板的cms 了嗎,可以分享一下嗎 為此你搜索到了哪些方案及不適用的原因 webman 有人做出可以切換模板的cms 了嗎,可以分享一下嗎,想自己寫一個(gè),寫模板切換不知道怎么寫,官方好像說要寫一個(gè),還沒出來呢,有人做出來了嗎?可以直接用的最好了,萬分感謝...
ErrorException: stream_socket_server(): unable to connect to tcp://127.0.0.1:2300 (Address already in use) in /www/wwwroot/xxxx/vendor/workerman/workerman/Worker.php:2262 webman 配置了不同的端口,但是啟動(dòng)的時(shí)候,一個(gè)能正常啟動(dòng),另外一個(gè)報(bào)錯(cuò),...
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: 沒辦法顯示驗(yàn)證碼,直接報(bào)錯(cuò),用的是官方推薦的驗(yàn)證...
想自己寫一個(gè)指定模板來渲染, 像這樣的,內(nèi)容 我可以自定義,不知道怎么實(shí)現(xiàn),能幫忙幫忙嗎?感激不盡...
webman 多應(yīng)用的config 配置,比如視圖,還有一些自定義配置,能針對(duì)單個(gè)應(yīng)用配置嗎?...
我默認(rèn)都是 app\admin\controller\index\Index.php 這樣的結(jié)構(gòu),我想生成這個(gè)url ,還必須寫route路由,然后再用route方法生成url 嗎?...