route.php 1022 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. return array
  3. (
  4. //'my/([0-9]+)/test/([a-zA-Z0-9]+).html' => 'project.database?id=$1&page=$2',
  5. # 项目管理
  6. /*
  7. 'project-([a-zA-Z0-9]+)' => 'project/database?key=$1',
  8. 'project-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-list' => 'project/database/list?key=$1&table=$2',
  9. 'project-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-list-([0-9]+)' => 'project/database/list?key=$1&table=$2&page=$3',
  10. 'project-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-update' => 'project/database/update?key=$1&table=$2',
  11. 'project-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-update-([a-zA-Z0-9]+)' => 'project/database/update?key=$1&table=$2&where_id=$3',
  12. # 为thead特殊处理 也可以不做处理
  13. 'project-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-list' => 'project/database/list?key=$1&table=$2&where_thead_id=$3',
  14. 'project-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-list-([0-9]+)' => 'project/database/list?key=$1&table=$2&where_thead_id=$3&page=$4',
  15. # 数据更新
  16. 'update_action' => 'database.update_action',
  17. # 登录
  18. 'login-(.*?)' => 'login?refer=$1',
  19. */
  20. );