去除 MODULE_NAME CONTROLLER_NAME ACTION_NAME 常量

This commit is contained in:
thinkphp
2016-06-01 18:34:36 +08:00
parent 4a4c53bf6b
commit ac0cb9be42
11 changed files with 123 additions and 59 deletions

View File

@@ -76,7 +76,7 @@ abstract class Rest
return $this->$fun();
} else {
// 抛出异常
throw new \Exception('error action :' . ACTION_NAME);
throw new \Exception('error action :' . $method);
}
}