Request类增加bind方法用于动态绑定属性 Route类的模型绑定直接绑定到Request实例对象的属性 便于获取

This commit is contained in:
thinkphp
2016-09-12 15:47:52 +08:00
parent fc0a761165
commit 3a983aa3e1
2 changed files with 29 additions and 1 deletions

View File

@@ -1367,7 +1367,7 @@ class Route
$bind[$key] = $result;
}
}
$matches = array_merge($matches, $bind);
Request::instance()->bind($bind);
}
// 解析额外参数