bwin必赢体育APP官方网站|线路入口

Error

PHP Warningyii\base\ErrorException

Invalid argument supplied for foreach()

beginContent('@app/views/layouts/public/_nav_product_list_common.php') ?> endContent() ?>
  • 9. in /www/wwwroot/www.judadc.com/vendor/yiisoft/yii2/base/View.php at line 329 – require('/www/wwwroot/www.judadc.com/fron...')
    323324325326327328329330331332333334335
         */
        public function renderPhpFile($_file_, $_params_ = [])
        {
            ob_start();
            ob_implicit_flush(false);
            extract($_params_, EXTR_OVERWRITE);
            require($_file_);
     
            return ob_get_clean();
        }
     
        /**
         * Renders dynamic content returned by the given PHP statements.
    
  • 10. in /www/wwwroot/www.judadc.com/vendor/yiisoft/yii2/base/View.php at line 251 yii\base\View::renderPhpFile('/www/wwwroot/www.judadc.com/fron...', [])
    245246247248249250251252253254255256257
                        $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]);
                    }
                    /* @var $renderer ViewRenderer */
                    $renderer = $this->renderers[$ext];
                    $output = $renderer->render($this, $viewFile, $params);
                } else {
                    $output = $this->renderPhpFile($viewFile, $params);
                }
                $this->afterRender($viewFile, $params, $output);
            }
     
            array_pop($this->_viewFiles);
            $this->context = $oldContext;
    
  • 11. in /www/wwwroot/www.judadc.com/vendor/yiisoft/yii2/base/View.php at line 150 yii\base\View::renderFile('/www/wwwroot/www.judadc.com/fron...', [], frontend\controllers\ListController)
    144145146147148149150151152153154155156
         * @throws InvalidCallException if the view cannot be resolved.
         * @see renderFile()
         */
        public function render($view, $params = [], $context = null)
        {
            $viewFile = $this->findViewFile($view, $context);
            return $this->renderFile($viewFile, $params, $context);
        }
     
        /**
         * Finds the view file based on the given view name.
         * @param string $view the view name or the path alias of the view file. Please refer to [[render()]]
         * on how to specify this parameter.
    
  • 12. in /www/wwwroot/www.judadc.com/vendor/yiisoft/yii2/base/Controller.php at line 378 yii\base\View::render('productList', [], frontend\controllers\ListController)
    372373374375376377378379380381382383384
         * These parameters will not be available in the layout.
         * @return string the rendering result.
         * @throws InvalidParamException if the view file or the layout file does not exist.
         */
        public function render($view, $params = [])
        {
            $content = $this->getView()->render($view, $params, $this);
            return $this->renderContent($content);
        }
     
        /**
         * Renders a static string by applying a layout.
         * @param string $content the static string being rendered
    
  • 13. in /www/wwwroot/www.judadc.com/frontend/controllers/ListController.php at line 70 yii\base\Controller::render('productList')
    64656667686970717273747576
            /**
             * 手机端结束
             */
     
            Yii::$app->params['list'] = $list?:[];
            Yii::$app->params['list_view'] = true;
            return $this->render('productList');
     
        }
     
        private function articleList($key){
     
            if (Yii::$app->params['lanmu']['pid']==5){//关于我们的页面
    
  • 14. in /www/wwwroot/www.judadc.com/frontend/controllers/ListController.php at line 34 – frontend\controllers\ListController::productList('cdq')
    28293031323334353637383940
            $key = $this->getClassName();
            Yii::$app->params['key'] = $key;
            $cat = Category::findOne(['key'=>$key]);
            if ($cat) {
                parent::common();
                if ($cat->type==1){
                    $this->productList($key);
                }elseif ($cat->type==2){
                    $this->articleList($key);
                }else{
                    $this->caseList($key);
                }
            }else{
    
  • 15. frontend\controllers\ListController::actionIndex()
  • 16. in /www/wwwroot/www.judadc.com/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([frontend\controllers\ListController, 'actionIndex'], [])
    495051525354555657
            $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);
        }
    }
    
  • 17. in /www/wwwroot/www.judadc.com/vendor/yiisoft/yii2/base/Controller.php at line 154 yii\base\InlineAction::runWithParams(['controller' => 'cdq'])
    148149150151152153154155156157158159160
            }
     
            $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 */
    
  • 18. in /www/wwwroot/www.judadc.com/vendor/yiisoft/yii2/base/Module.php at line 454 yii\base\Controller::runAction('index', ['controller' => 'cdq'])
    448449450451452453454455456457458459460
            $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;
            } else {
    
  • 19. in /www/wwwroot/www.judadc.com/vendor/yiisoft/yii2/web/Application.php at line 100 yii\base\Module::runAction('list/index', ['controller' => 'cdq'])
    949596979899100101102103104105106
                $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;
    
  • 20. in /www/wwwroot/www.judadc.com/vendor/yiisoft/yii2/base/Application.php at line 375 yii\web\Application::handleRequest(common\core\Request)
    369370371372373374375376377378379380381
            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();
    
  • 21. in /www/wwwroot/www.judadc.com/frontend/web/index.php at line 24 yii\base\Application::run()
    18192021222324
        require(__DIR__ . '/../../common/config/main.php'),
        require(__DIR__ . '/../../common/config/main-local.php'),
        require(__DIR__ . '/../config/main.php'),
        require(__DIR__ . '/../config/main-local.php')
    );
     
    (new yii\web\Application($config))->run();
  • $_GET = [
        'controller' => 'cdq',
    ];
    Baidu
    sogou