发生异常
Uncaught Exception: \homecn\action\indexAction->a()方法不存在 in /data/wwwroot/qgmvc/v1.0/mvc/mvc.php:693
[]Uncaught Exception: \homecn\action\indexAction->a()方法不存在 in /data/wwwroot/qgmvc/v1.0/mvc/mvc.php:693
Stack trace:
#0 /data/wwwroot/qgmvc/gsp/homecn/index.php(30): mvc::execute()
#1 {main}
thrown
/data/wwwroot/qgmvc/v1.0/mvc/mvc.php (693)
674 unset($arr['db']);
675 unset($arr['safe']);
676 dump ($arr);
677 phpinfo();
678 exit();
679 }
680 if (isset (self::$req['runtime'])) $timeBegin = getUnixTimestamp();
681 }
682 //单例模式
683 if (substr(self::$method,-5)=='.html'){
684 $viewfile = self::getViewByAction(self::$class ,substr(self::$method,0,-5));
685 self::$req['viewfile'] = $viewfile;
686 self::$method = '_CallHtml';
687 }
688
689 //创建控制器类
690 $action = new self::$class ();
691 /* 检查类模型方法是否存在 */
692 if (false == method_exists (self::$class , self::$method)) {
693 throw new \Exception (self::$class .'->'.self::$method.'()'.lg('方法不存在') );
694 }
695 $params = [];
696 $paramsWithKey = []; //用于前置与后置方法传参
697 /* 反射, 配对参数对应关系,及处理默认值 */
698 $reflector = new \ReflectionMethod($action,self::$method);
699 $reflectorParameters = $reflector->getParameters();
700 if (self::$reqUriValues){
701 foreach ($reflectorParameters as $k => $v){
702 if (array_key_exists($k,self::$reqUriValues)){
703 self::$req[$v->name] = self::$reqUriValues[$k];
704 }
705 }
706 }
707 /*配对参数对应关系,及处理默认值 $paramsWithKey 用于 _CallBefore _CallEnd 调用*/
708 foreach ($reflectorParameters as $k => $v){
709 if (array_key_exists($v->name, self::$req)){
710 $params[$k] = self::$req[$v->name];
711 $paramsWithKey[$v->name] = $params[$k];
712 }elseif($v->isDefaultValueAvailable()){
713 $params[$k] = $v->getDefaultValue();
714 $paramsWithKey[$v->name] = $params[$k];