Error

PHP Notice雷电竞下载-雷电竞app官网-雷电竞首页

Undefined variable: list

  • 1. in /data/application/php/chezhan/chezhan/genwebapp/models/ExhibitionSchedule.php at line 24
    15161718192021222324252627282930313233
     
    	public static function getMscheList($companyId,$date_year)
    	{
    		$data = self::find()->where(['company_id'=>$companyId])->andWhere(['like','start_time',$date_year])->orderBy(['month' => SORT_ASC])->asArray()->all();
    		foreach ($data as $key => $v){
    			$gola = GlobalRegion::findOne(['region_id'=>$v['citys']]);
    			$v['city_name'] = $gola['region_name'];
    			$list[$v['month']][] = $v;
    		}
    		$list_values = ['month' => array_keys($list), 'data' => $list];
    		return $list_values;
    	}
     
     
    	public static function getScheCount($companyId,$date_year)
    	{
    		return self::find()->where(['company_id'=>$companyId])->andWhere(['like','start_time',$date_year])->count();
    	}
     
    
  • 2. in /data/application/php/chezhan/chezhan/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – genwebapp\controllers\SiteController::actionIntroduce()
    515253545556575859
            $args = $this->controller->bindActionParams($this, $params);
            Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
            if (Yii::$app->requestedParams === null) {
                Yii::$app->requestedParams = $args;
            }
     
            return call_user_func_array([$this->controller, $this->actionMethod], $args);
        }
    }
    
  • 3. in /data/application/php/chezhan/chezhan/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array:{/data/application/php/chezhan/chezhan/vendor/yiisoft/yii2/base/InlineAction.php:57}()
    515253545556575859
            $args = $this->controller->bindActionParams($this, $params);
            Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
            if (Yii::$app->requestedParams === null) {
                Yii::$app->requestedParams = $args;
            }
     
            return call_user_func_array([$this->controller, $this->actionMethod], $args);
        }
    }
    
  • 4. in /data/application/php/chezhan/chezhan/vendor/yiisoft/yii2/base/Controller.php at line 156 yii\base\InlineAction::runWithParams()
    150151152153154155156157158159160161162
            }
     
            $result = null;
     
            if ($runAction && $this->beforeAction($action)) {
                // run the action
                $result = $action->runWithParams($params);
     
                $result = $this->afterAction($action, $result);
     
                // call afterAction on modules
                foreach ($modules as $module) {
                    /* @var $module Module */
    
  • 5. in /data/application/php/chezhan/chezhan/vendor/yiisoft/yii2/base/Module.php at line 523 yii\base\Controller::runAction()
    517518519520521522523524525526527528529
            $parts = $this->createController($route);
            if (is_array($parts)) {
                /* @var $controller Controller */
                list($controller, $actionID) = $parts;
                $oldController = Yii::$app->controller;
                Yii::$app->controller = $controller;
                $result = $controller->runAction($actionID, $params);
                if ($oldController !== null) {
                    Yii::$app->controller = $oldController;
                }
     
                return $result;
            }
    
  • 6. in /data/application/php/chezhan/chezhan/vendor/yiisoft/yii2/web/Application.php at line 102 yii\base\Module::runAction()
    96979899100101102103104105106107108
                $params = $this->catchAll;
                unset($params[0]);
            }
            try {
                Yii::trace("Route requested: '$route'", __METHOD__);
                $this->requestedRoute = $route;
                $result = $this->runAction($route, $params);
                if ($result instanceof Response) {
                    return $result;
                } else {
                    $response = $this->getResponse();
                    if ($result !== null) {
                        $response->data = $result;
    
  • 7. in /data/application/php/chezhan/chezhan/vendor/yiisoft/yii2/base/Application.php at line 380 yii\web\Application::handleRequest()
    374375376377378379380381382383384385386
            try {
     
                $this->state = self::STATE_BEFORE_REQUEST;
                $this->trigger(self::EVENT_BEFORE_REQUEST);
     
                $this->state = self::STATE_HANDLING_REQUEST;
                $response = $this->handleRequest($this->getRequest());
     
                $this->state = self::STATE_AFTER_REQUEST;
                $this->trigger(self::EVENT_AFTER_REQUEST);
     
                $this->state = self::STATE_SENDING_RESPONSE;
                $response->send();
    
  • 8. in /data/application/php/chezhan/chezhan/genwebapp/web/index.php at line 20 yii\base\Application::run()
    14151617181920
        require(__DIR__ . '/../../common/config/main.php'),
        require(__DIR__ . '/../../common/config/main-local.php'),
        require(__DIR__ . '/../config/main.php'),
        require(__DIR__ . '/../config/main-local.php')
    );
    $application = new yii\web\Application($config);
    $application->run();
    
  •