求助:路由问题

浏览:462 发布日期:2016/06/04 分类:ThinkPHP5专区

这样路由传参要怎么弄return [

    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    '/' => 'index', 
    '/:i' => 'News/eee',
     'url_html_suffix' => 'html'


];
最佳答案
评论( 相关
后面还有条评论,点击查看>>