route.php 1.1 KB

123456789101112131415161718192021222324
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. use \think\Route;
  12. //兼容模式 不支持伪静态可开启
  13. //\think\Url::root('index.php?s=');
  14. Route::group('admin',function(){
  15. // Route::rule('/index2','admin/Index/index2','get');
  16. // Route::controller('index','admin/Index');
  17. // resource('system_menus','SystemMenus');
  18. // Route::rule('/menus','SystemMenus','get');
  19. // Route::resource('menus','admin/SystemMenus',['var'=>['menus'=>'menu_id']]);
  20. // Route::miss(function(){
  21. // return '页面不存在!';
  22. // });
  23. });