路由别名

This commit is contained in:
thinkphp
2015-12-11 10:25:44 +08:00
parent 78d5bbd471
commit 6a5840b8e2
2 changed files with 4 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ class Route
private static $domain = [];
// 变量规则
private static $pattern = [];
// 路由别名 用于自动生成
public static $alias = [];
// 添加URL映射规则
public static function map($map, $route = '')