Error

PHP Notice万博体育app世界杯_万博manbetx客户端下载_新万博app

Undefined variable: model

  • 1. in /www/wwwroot/www.schoolside.com/frontend/views/list/list_185.php at line 148
    139140141142143144145146147148149150151152153154155156157
    			<script type="text/javascript">jQuery(".slideTxtBox").slide({autoPlay:true});</script>				
            </div>
            <div class="span4">
    			<div class="right_menu index_tow_menu">
                	<h3>历史上的今天</h3>
                </div>
    			<iframe src="http://www.todayonhistory.com/code/5.html?w=370&h=200&bky=dotted&bks=1&bkc=#C1C1C1&fs=14&fc=#565656&hg=20&ie=0&xhx=none&sd=0&px=1&len=0&sk=2&n=0" width="370" height="200" scrolling="no" frameborder="0" allowtransparency="true"  style="border: 1px dotted #C1C1C1"></iframe>
     
    			<?php
    				$model = Articlecat::findOne($model->cat_id);
    				if($model){
    			?>
    			<div class="right_menu index_tow_menu">
                	<h3><?php echo $model->name; ?></h3>
                    <p><a href="&rvpu;μ?qiq" echo Url::to(['site/list','cat_id'=>$model->id]); ?>">更多》</a></p>
                </div>
     
    			<?php $model_one = Article::find()->select(['article_id','name','add_time','thumb'])->where(['and','thumb!=""',"cat_id=$model->id"])->orderBy(['add_time'=>SORT_DESC])->one(); ?>
            	<?php if($model_one){ ?><img src="<?php echo Yii::getAlias('@bar').DIRECTORY_SEPARATOR.$model_one->thumb; ?>" width="100%"><?php } ?>
    
  • 2. in /www/wwwroot/www.schoolside.com/frontend/views/list/list_185.php at line 148 yii\base\ErrorHandler::handleError(8, 'Undefined variable: model', '/www/wwwroot/www.schoolside.com/...', 148, ...)
    142143144145146147148149150151152153154
    			<div class="right_menu index_tow_menu">
                	<h3>历史上的今天</h3>
                </div>
    			<iframe src="http://www.todayonhistory.com/code/5.html?w=370&h=200&bky=dotted&bks=1&bkc=#C1C1C1&fs=14&fc=#565656&hg=20&ie=0&xhx=none&sd=0&px=1&len=0&sk=2&n=0" width="370" height="200" scrolling="no" frameborder="0" allowtransparency="true"  style="border: 1px dotted #C1C1C1"></iframe>
     
    			<?php
    				$model = Articlecat::findOne($model->cat_id);
    				if($model){
    			?>
    			<div class="right_menu index_tow_menu">
                	<h3><?php echo $model->name; ?></h3>
                    <p><a href="&rvpu;μ?qiq" echo Url::to(['site/list','cat_id'=>$model->id]); ?>">更多》</a></p>
                </div>
    
  • 3. in /www/wwwroot/www.schoolside.com/vendor/yiisoft/yii2/base/View.php at line 325 – require('/www/wwwroot/www.schoolside.com/...')
    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/www.schoolside.com/vendor/yiisoft/yii2/base/View.php at line 247 yii\base\View::renderPhpFile('/www/wwwroot/www.schoolside.com/...', ['models' => [], 'pages' => yii\data\Pagination, 'cat_id' => '132'])
    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/www.schoolside.com/vendor/yiisoft/yii2/base/View.php at line 149 yii\base\View::renderFile('/www/wwwroot/www.schoolside.com/...', ['models' => [], 'pages' => yii\data\Pagination, 'cat_id' => '132'], frontend\controllers\SiteController)
    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/www.schoolside.com/vendor/yiisoft/yii2/base/Controller.php at line 377 yii\base\View::render('//list/list_185', ['models' => [], 'pages' => yii\data\Pagination, 'cat_id' => '132'], frontend\controllers\SiteController)
    371372373374375376377378379380381382383
         * 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
    
  • 7. in /www/wwwroot/www.schoolside.com/frontend/controllers/SiteController.php at line 80 yii\base\Controller::render('//list/list_185', ['models' => [], 'pages' => yii\data\Pagination, 'cat_id' => '132'])
    74757677787980818283848586
                $this->redirect(['personlist', 'cat_id' => $cat_id]);
     
            return $this->render('//list/list_' . $root_id, [
                'models' => $models,
                'pages' => $pages,
                'cat_id' => $cat_id,
            ]);
        }
     
        public function actionPersonlist()
        {
            $this->layout = "main3";
            $cat_id = Yii::$app->request->get('cat_id');
    
  • 8. frontend\controllers\SiteController::actionList()
  • 9. in /www/wwwroot/www.schoolside.com/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([frontend\controllers\SiteController, 'actionList'], [])
    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);
        }
    }
    
  • 10. in /www/wwwroot/www.schoolside.com/vendor/yiisoft/yii2/base/Controller.php at line 154 yii\base\InlineAction::runWithParams(['cat_id' => '132'])
    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 */
    
  • 11. in /www/wwwroot/www.schoolside.com/vendor/yiisoft/yii2/base/Module.php at line 454 yii\base\Controller::runAction('list', ['cat_id' => '132'])
    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);
                Yii::$app->controller = $oldController;
     
                return $result;
            } else {
                $id = $this->getUniqueId();
                throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
    
  • 12. in /www/wwwroot/www.schoolside.com/vendor/yiisoft/yii2/web/Application.php at line 84 yii\base\Module::runAction('site/list', ['cat_id' => '132'])
    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;
    
  • 13. in /www/wwwroot/www.schoolside.com/vendor/yiisoft/yii2/base/Application.php at line 375 yii\web\Application::handleRequest(yii\web\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();
    
  • 14. in /www/wwwroot/www.schoolside.com/index.php at line 18 yii\base\Application::run()
    12131415161718
        require(__DIR__ . '/./common/config/main-local.php'),
        require(__DIR__ . '/./frontend/config/main.php'),
        require(__DIR__ . '/./frontend/config/main-local.php')
    );
     
    $application = new yii\web\Application($config);
    $application->run();
    
  • $_GET = [
        'cat_id' => '132',
    ];