Error

PHP Notice亚博体育yabo88_yabo亚博_yabo亚博体育苹果

Undefined variable: banner

  • 1. in /home/www/ririagnew/frontend/views/depthprocess/auag.php at line 66
    57585960616263646566676869707172737475
    <link rel="stylesheet" href="/css/index2017version2.css">
    <link rel="stylesheet" href="/css/card2017version2.css">
     
    <div class="wrap" style="position:relative">
        <!-- banner -->
        <div class="banner">
            <!--全屏滚动-->
            <div class="box">
                <ul class="imgList">
                    <?php foreach ($banner as $v) { ?>
                        <li>
                            <a href="&rvpu;μ?=" $v->url ?>"><img src="<?= $v->picName ?>"/></a>
                        </li>
                    <?php } ?>
                </ul>
                <ol class="btnList">
                </ol>
                <!-- 左右按钮 -->
                <!-- <div class="leftBtn"></div>
    
  • 2. in /home/www/ririagnew/frontend/views/depthprocess/auag.php at line 66 yii\base\ErrorHandler::handleError(8, 'Undefined variable: banner', '/home/www/ririagnew/frontend/vie...', 66, ...)
    60616263646566676869707172
    <div class="wrap" style="position:relative">
        <!-- banner -->
        <div class="banner">
            <!--全屏滚动-->
            <div class="box">
                <ul class="imgList">
                    <?php foreach ($banner as $v) { ?>
                        <li>
                            <a href="&rvpu;μ?=" $v->url ?>"><img src="<?= $v->picName ?>"/></a>
                        </li>
                    <?php } ?>
                </ul>
                <ol class="btnList">
    
  • 3. in /home/www/ririagnew/vendor/yiisoft/yii2/base/View.php at line 325 – require('/home/www/ririagnew/frontend/vie...')
    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 /home/www/ririagnew/vendor/yiisoft/yii2/base/View.php at line 247 yii\base\View::renderPhpFile('/home/www/ririagnew/frontend/vie...', ['products' => [common\models\Product, common\models\Product, common\models\Product, common\models\Product, ...], 'uid' => ''])
    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 /home/www/ririagnew/vendor/yiisoft/yii2/base/View.php at line 149 yii\base\View::renderFile('/home/www/ririagnew/frontend/vie...', ['products' => [common\models\Product, common\models\Product, common\models\Product, common\models\Product, ...], 'uid' => ''], frontend\controllers\DepthprocessController)
    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 /home/www/ririagnew/vendor/yiisoft/yii2/base/Controller.php at line 371 yii\base\View::render('auag', ['products' => [common\models\Product, common\models\Product, common\models\Product, common\models\Product, ...], 'uid' => ''], frontend\controllers\DepthprocessController)
    365366367368369370371372373374375376377
         * 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 /home/www/ririagnew/frontend/controllers/DepthprocessController.php at line 85 yii\base\Controller::render('auag', ['products' => [common\models\Product, common\models\Product, common\models\Product, common\models\Product, ...], 'uid' => ''])
    79808182838485868788899091
                ->andWhere(['like','{{%product}}.catid', '1003'])
                ->andWhere(['>','stock', '0'])
                ->orderBy('id')->limit(9)->all();
            return $this->render('auag',[
                'products' => $products,
                'uid' => $uid,
            ]);
        }
     
     
        /**
         * 商品详细
         */
    
  • 8. frontend\controllers\DepthprocessController::actionAuag()
  • 9. in /home/www/ririagnew/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([frontend\controllers\DepthprocessController, 'actionAuag'], [])
    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 /home/www/ririagnew/vendor/yiisoft/yii2/base/Controller.php at line 151 yii\base\InlineAction::runWithParams([])
    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 */
    
  • 11. in /home/www/ririagnew/vendor/yiisoft/yii2/base/Module.php at line 455 yii\base\Controller::runAction('auag', [])
    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) . '".');
    
  • 12. in /home/www/ririagnew/vendor/yiisoft/yii2/web/Application.php at line 84 yii\base\Module::runAction('depthprocess/auag', [])
    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 /home/www/ririagnew/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 /home/www/ririagnew/frontend/web/index.php at line 18 yii\base\Application::run()
    12131415161718
        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();
    
  • $_SERVER = [
        'USER' => 'apache',
        'HOME' => '/usr/share/httpd',
        'FCGI_ROLE' => 'RESPONDER',
        'QUERY_STRING' => '',
        'REQUEST_METHOD' => 'GET',
        'CONTENT_TYPE' => '',
        'CONTENT_LENGTH' => '',
        'SCRIPT_NAME' => '/index.php',
        'REQUEST_URI' => '/depthprocess/auag',
        'DOCUMENT_URI' => '/index.php',
        'DOCUMENT_ROOT' => '/home/www/ririagnew/frontend/web',
        'SERVER_PROTOCOL' => 'HTTP/1.1',
        'REQUEST_SCHEME' => 'http',
        'GATEWAY_INTERFACE' => 'CGI/1.1',
        'SERVER_SOFTWARE' => 'nginx/1.10.2',
        'REMOTE_ADDR' => '175.29.60.34',
        'REMOTE_PORT' => '20000',
        'SERVER_ADDR' => '139.196.198.104',
        'SERVER_PORT' => '80',
        'SERVER_NAME' => 'www.ririag.com',
        'REDIRECT_STATUS' => '200',
        'SCRIPT_FILENAME' => '//home/www/ririagnew/frontend/web/index.php',
        'HTTP_USER_AGENT' => 'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)',
        'HTTP_HOST' => 'www.ririag.com',
        'HTTP_ACCEPT' => '*/*',
        'HTTP_ACCEPT_ENCODING' => 'deflate, gzip',
        'PHP_SELF' => '/index.php',
        'REQUEST_TIME_FLOAT' => 1603397914.3303,
        'REQUEST_TIME' => 1603397914,
    ];