github.com/HimAndRobot/Groute
源代码
问题
安装: 1
依赖: 0
建议者: 0
安全: 0
星标: 0
关注者: 0
分支: 0
公开问题: 0
类型:包
Requires
None
Requires (Dev)
Suggests
Provides
Conflicts
Replaces
MIT 0f1614538bad7305b48807e111f4b20e82b577ad
This package is auto-updated.
Last update: 2024-09-08 16:09:24 UTC
在Groute中,路由由值集合(方法,路由,动作)组成。如下所示。
$app->metodo('rota','ação') 方法值引用HTML请求类型。接受的请求类型包括: [GET][POST][DELETE][PUT]
例如,以下路由在接收到GET请求时调用home控制器和index动作:$route->get('/home/{$gean}/teste','home@index');
例如,同样路由在接收到POST请求时调用另一个控制器:$route->post('/home/{$gean}/teste','homa@registro');