A和R快捷方法 默认调用Controller层

This commit is contained in:
ThinkPHP
2013-04-18 10:32:19 +08:00
parent 79aa5d55fb
commit 26fbd9b40d
2 changed files with 3 additions and 3 deletions

View File

@@ -190,7 +190,7 @@ class Loader {
* @param string $layer 要调用的控制层名称
* @return mixed
*/
static public function action($url, $vars = [], $layer = '') {
static public function action($url, $vars = [], $layer = 'Controller') {
$info = pathinfo($url);
$action = $info['basename'];
$module = '.' != $info['dirname'] ? $info['dirname'] : CONTROLLER_NAME;