Error

PHP Warningyii\base\ErrorException

Invalid argument supplied for foreach()

  • 1. in /www/wwwroot/chinacto.cn/themes/wap/widgets/views/left/left.php at line 8
    1234567891011
    <?php 
    use yii\helpers\Url;
    use yii\helpers\Html;
    use frontend\components\webHelper;
    ?>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                             <?php 
    			foreach($info['son'] as $k=>$val){
    			?>
    			<li class="li-e fl <?php if(in_array($val['id'],$this->context->curve)){?>sy<?php }?>"><a href=""<?php" echo Yii::$app->urlto->to($model[$val['id']]);?>"> <?php echo webHelper::strReplace($val['title'],4,'')?></a></li>
    			<?php }?>
    
  • 2. in /www/wwwroot/chinacto.cn/themes/wap/widgets/views/left/left.php yii\base\ErrorHandler::handleError(2, 'Invalid argument supplied for fo...', '/www/wwwroot/chinacto.cn/themes/...', 8, ...) at line 8
    234567891011
    use yii\helpers\Url;
    use yii\helpers\Html;
    use frontend\components\webHelper;
    ?>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                             <?php 
    			foreach($info['son'] as $k=>$val){
    			?>
    			<li class="li-e fl <?php if(in_array($val['id'],$this->context->curve)){?>sy<?php }?>"><a href=""<?php" echo Yii::$app->urlto->to($model[$val['id']]);?>"> <?php echo webHelper::strReplace($val['title'],4,'')?></a></li>
    			<?php }?>
    
  • 3. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/View.php – require('/www/wwwroot/chinacto.cn/themes/...') at line 325
    319320321322323324325326327328329330331
         */
        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.
    
  • 4. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/View.php yii\base\View::renderPhpFile('/www/wwwroot/chinacto.cn/themes/...', ['model' => [229 => frontend\models\ProgramaModel, 227 => frontend\models\ProgramaModel, 277 => frontend\models\ProgramaModel, 216 => frontend\models\ProgramaModel, ...], 'info' => ['id' => '278', 'pid' => '235', 'title' => '手机广告', 'swerve' => '', ...]]) at line 247
    241242243244245246247248249250251252253
                        $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;
    
  • 5. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/View.php yii\base\View::renderFile('/www/wwwroot/chinacto.cn/fronten...', ['model' => [229 => frontend\models\ProgramaModel, 227 => frontend\models\ProgramaModel, 277 => frontend\models\ProgramaModel, 216 => frontend\models\ProgramaModel, ...], 'info' => ['id' => '278', 'pid' => '235', 'title' => '手机广告', 'swerve' => '', ...]], frontend\widgets\LeftTreeWidget) at line 149
    143144145146147148149150151152153154155
         * @throws InvalidParamException if the view cannot be resolved or the view file does not exist.
         * @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.
    
  • 6. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/Widget.php yii\base\View::render('left/left', ['model' => [229 => frontend\models\ProgramaModel, 227 => frontend\models\ProgramaModel, 277 => frontend\models\ProgramaModel, 216 => frontend\models\ProgramaModel, ...], 'info' => ['id' => '278', 'pid' => '235', 'title' => '手机广告', 'swerve' => '', ...]], frontend\widgets\LeftTreeWidget) at line 187
    181182183184185186187188189190191192193
         * @param array $params the parameters (name-value pairs) that should be made available in the view.
         * @return string the rendering result.
         * @throws InvalidParamException if the view file does not exist.
         */
        public function render($view, $params = [])
        {
            return $this->getView()->render($view, $params, $this);
        }
     
        /**
         * Renders a view file.
         * @param string $file the view file to be rendered. This can be either a file path or a path alias.
         * @param array $params the parameters (name-value pairs) that should be made available in the view.
    
  • 8. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/Widget.php – frontend\widgets\LeftTreeWidget::run() at line 97
    919293949596979899100101102103
            ob_start();
            ob_implicit_flush(false);
            try {
                /* @var $widget Widget */
                $config['class'] = get_called_class();
                $widget = Yii::createObject($config);
                $out = $widget->run();
            } catch(\Exception $e) {
                ob_end_clean();
                throw $e;
            }
     
            return ob_get_clean() . $out;
    
  • 9. in /www/wwwroot/chinacto.cn/themes/wap/views/layouts/main.php yii\base\Widget::widget(['temp' => 'left', 'model' => stdClass]) at line 77
    71727374757677787980818283
     
            <!--内容-->
        <div class="connent">
            <div class="c-a"><b><?php echo $this->model->title;?></b></div>
            <div class="c-b"></div>
            <ul class="ul-e">
            	 <?php echo frontend\widgets\LeftTreeWidget::widget(['temp'=>'left','model'=>$this->model,]);?>
                 <div class="clearfix"></div>
            </ul>
            <div class="pw">
            <?php echo $content;?>
            <div class="clearfix"></div>
            </div>
    
  • 10. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/View.php – require('/www/wwwroot/chinacto.cn/themes/...') at line 325
    319320321322323324325326327328329330331
         */
        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.
    
  • 11. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/View.php yii\base\View::renderPhpFile('/www/wwwroot/chinacto.cn/themes/...', ['content' => '<img src="/Upload/attached/image...']) at line 247
    241242243244245246247248249250251252253
                        $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;
    
  • 12. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/Controller.php yii\base\View::renderFile('/www/wwwroot/chinacto.cn/fronten...', ['content' => '<img src="/Upload/attached/image...'], frontend\controllers\PageController) at line 386
    380381382383384385386387388389390391392
         * @since 2.0.1
         */
        public function renderContent($content)
        {
            $layoutFile = $this->findLayoutFile($this->getView());
            if ($layoutFile !== false) {
                return $this->getView()->renderFile($layoutFile, ['content' => $content], $this);
            } else {
                return $content;
            }
        }
     
        /**
    
  • 13. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/Controller.php yii\base\Controller::renderContent('<img src="/Upload/attached/image...') at line 372
    366367368369370371372373374375376377378
         * @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
         * @return string the rendering result of the layout with the given static string as the `$content` variable.
    
  • 15. frontend\controllers\PageController::actionCreate()
  • 16. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/base/InlineAction.php – call_user_func_array([frontend\controllers\PageController, 'actionCreate'], []) at line 55
    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/chinacto.cn/vendor/yiisoft/yii2/base/Controller.php yii\base\InlineAction::runWithParams(['id' => 53, 's' => '/404.html']) at line 151
    145146147148149150151152153154155156157
            }
     
            $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/chinacto.cn/vendor/yiisoft/yii2/base/Module.php yii\base\Controller::runAction('create', ['id' => 53, 's' => '/404.html']) at line 455
    449450451452453454455456457458459460461
            $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);
                Yii::$app->controller = $oldController;
     
                return $result;
            } else {
                $id = $this->getUniqueId();
                throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
    
  • 19. in /www/wwwroot/chinacto.cn/vendor/yiisoft/yii2/web/Application.php yii\base\Module::runAction('page/create', ['id' => 53, 's' => '/404.html']) at line 84
    78798081828384858687888990
                $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/chinacto.cn/vendor/yiisoft/yii2/base/Application.php yii\web\Application::handleRequest(yii\web\Request) at line 375
    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/chinacto.cn/index.php yii\base\Application::run() at line 32
    26272829303132
    			require(__DIR__ . '/frontend/config/main.php'),
    			require(__DIR__ . '/frontend/config/main-local.php')
    	);
    }
     
    $application = new yii\web\Application($config);
    $application->run();
    
  • $_GET = [
        'id' => 53,
        's' => '/404.html',
    ];
    
    $_SERVER = [
        'USER' => 'www',
        'HOME' => '/home/www',
        'FCGI_ROLE' => 'RESPONDER',
        'SCRIPT_FILENAME' => '/www/wwwroot/chinacto.cn/index.php',
        'QUERY_STRING' => 's=/404.html',
        'REQUEST_METHOD' => 'GET',
        'CONTENT_TYPE' => '',
        'CONTENT_LENGTH' => '',
        'SCRIPT_NAME' => '/index.php',
        'REQUEST_URI' => '/404.html',
        'DOCUMENT_URI' => '/index.php',
        'DOCUMENT_ROOT' => '/www/wwwroot/chinacto.cn',
        'SERVER_PROTOCOL' => 'HTTP/1.1',
        'REQUEST_SCHEME' => 'http',
        'GATEWAY_INTERFACE' => 'CGI/1.1',
        'SERVER_SOFTWARE' => 'nginx/1.15.10',
        'REMOTE_ADDR' => '154.206.45.154',
        'REMOTE_PORT' => '20171',
        'SERVER_ADDR' => '23.249.16.77',
        'SERVER_PORT' => '80',
        'SERVER_NAME' => 'chinacto.cn',
        'REDIRECT_STATUS' => '200',
        'PATH_INFO' => '',
        'HTTP_USER_AGENT' => 'Mozilla/5.0 (Linux;u;Android 4.2.2;zh-cn;) AppleWebKit/534.46 (KHTML,likeGecko) Version/5.1 Mobile Safari/10600.6.3 (compatible; Baiduspider/2.0;+http://www.baidu.com/search/spider.html)',
        'HTTP_HOST' => 'www.chinacto.cn',
        'HTTP_ACCEPT' => '*/*',
        'HTTP_ACCEPT_ENCODING' => 'deflate, gzip',
        'PHP_SELF' => '/index.php',
        'REQUEST_TIME_FLOAT' => 1566241545.8272419,
        'REQUEST_TIME' => 1566241545,
    ];

    万博manbetx官网|体育

  • <tr id='bd7a21'><strong id='bd7a21'></strong><small id='bd7a21'></small><button id='bd7a21'></button><li id='bd7a21'><noscript id='bd7a21'><big id='bd7a21'></big><dt id='bd7a21'></dt></noscript></li></tr><ol id='bd7a21'><option id='bd7a21'><table id='bd7a21'><blockquote id='bd7a21'><tbody id='bd7a21'></tbody></blockquote></table></option></ol><u id='bd7a21'></u><kbd id='bd7a21'><kbd id='bd7a21'></kbd></kbd>

    <code id='bd7a21'><strong id='bd7a21'></strong></code>

    <fieldset id='bd7a21'></fieldset>
          <span id='bd7a21'></span>

              <ins id='bd7a21'></ins>
              <acronym id='bd7a21'><em id='bd7a21'></em><td id='bd7a21'><div id='bd7a21'></div></td></acronym><address id='bd7a21'><big id='bd7a21'><big id='bd7a21'></big><legend id='bd7a21'></legend></big></address>

              <i id='bd7a21'><div id='bd7a21'><ins id='bd7a21'></ins></div></i>
              <i id='bd7a21'></i>
            1. <dl id='bd7a21'></dl>
              1. <blockquote id='bd7a21'><q id='bd7a21'><noscript id='bd7a21'></noscript><dt id='bd7a21'></dt></q></blockquote><noframes id='bd7a21'><i id='bd7a21'></i>