“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
webman-路由-路由接口-head请求
发布时间:2022-01-19 22:34:50作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
1
阅读全文>>webman-路由-路由分组
发布时间:2022-01-19 22:33:11作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
路由配置于config/route.php:有时候路由包含了大量相同的前缀,这时候我们可以用路由分组来简化定义。 实例:<?php/** * This file is part of webman. * * Licensed under Th
阅读全文>>webman-路由-路由分组 - group嵌套使用
发布时间:2022-01-19 22:32:05作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
路由配置于config/route.php:路由除了可以group分组,也可以支持再次嵌套实例:<?php/** * This file is part of webman. * * Licensed under The MIT License * For full cop
阅读全文>>webman-路由-路由参数
发布时间:2022-01-19 22:31:24作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
在config/route.php配置如use Webman\Route;Route::any('/testclass/{id}', [app\controller\Foo::class, 'index']);在\app\controller\Foo.php中实现如:<?phpnamespace ap
阅读全文>>webman-路由-路由参数 - 更多例子
发布时间:2022-01-19 22:30:33作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
路由配置于config/route.php:仅匹配数字类型参数<?php/** * This file is part of webman. * * Licensed under The MIT License * For full copyright and license inform
阅读全文>>