0
点赞
收藏
分享

微信扫一扫

tp6路由设置根据目录自动 /home/index/test



route/app.php

<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');

Route::rule('<version>/<controller>/<action>','<version>.<controller>/<action>');

tp6路由设置根据目录自动 /home/index/test_thinkphp


举报

相关推荐

0 条评论