Exception

View not Foundyii\base\ViewNotFoundException

The view file does not exist: /data/htdocs/lion_advanced/frontend/modules/cms/views/home/about/index.php

  • 1. in /data/htdocs/framework/vendor/yiisoft/yii2/base/View.php at line 229
    220221222223224225226227228229230231232233234235236237238
        {
            $viewFile = Yii::getAlias($viewFile);
     
            if ($this->theme !== null) {
                $viewFile = $this->theme->applyTo($viewFile);
            }
            if (is_file($viewFile)) {
                $viewFile = FileHelper::localize($viewFile);
            } else {
                throw new ViewNotFoundException("The view file does not exist: $viewFile");
            }
     
            $oldContext = $this->context;
            if ($context !== null) {
                $this->context = $context;
            }
            $output = '';
            $this->_viewFiles[] = $viewFile;
     
    
  • 2. in /data/htdocs/framework/vendor/yiisoft/yii2/base/View.php at line 152 yii\base\View::renderFile('/data/htdocs/lion_advanced/front...', [], modules\cms\controllers\home\AboutController)
    146147148149150151152153154155156157158
         * @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](guide:concept-aliases) of the view file. Please refer to [[render()]]
         * on how to specify this parameter.
    
  • 3. in /data/htdocs/framework/vendor/yiisoft/yii2/base/Controller.php at line 381 yii\base\View::render('index', [], modules\cms\controllers\home\AboutController)
    375376377378379380381382383384385386387
         * 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
    
  • 4. in /data/htdocs/lion_advanced/frontend/modules/cms/controllers/home/CommonController.php at line 10 yii\base\Controller::render('index')
    45678910111213141516
     
    class CommonController extends \common\web\HomeController
    {
     
        public function actionIndex()
        {
            return $this->render('index');
        }
     
        public function actionText()
        {
            return $this->render('text_view');
        }
    
  • 5. modules\cms\controllers\home\CommonController::actionIndex()
  • 6. in /data/htdocs/framework/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([modules\cms\controllers\home\AboutController, 'actionIndex'], [])
    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);
        }
    }
    
  • 7. in /data/htdocs/framework/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 */
    
  • 8. in /data/htdocs/framework/vendor/yiisoft/yii2/base/Module.php at line 523 yii\base\Controller::runAction('index', [])
    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;
            }
    
  • 9. in /data/htdocs/framework/vendor/yiisoft/yii2/web/Application.php at line 102 yii\base\Module::runAction('cms/home/about/index', [])
    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;
    
  • 10. in /data/htdocs/framework/vendor/yiisoft/yii2/base/Application.php at line 380 yii\web\Application::handleRequest(yii\web\Request)
    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();
    
  • 11. in /data/htdocs/lion_advanced/web/index.php at line 40 yii\base\Application::run()
    34353637383940
     
    if (is_file(__DIR__ . '/../frontend/config/i18n/'.$bid.'_i18n.php')) {
        $i18n = require(__DIR__ . '/../frontend/config/i18n/'.$bid.'_i18n.php');
        $config['params']['i18n'] = $i18n;
    }
     
    (new yii\web\Application($config))->run();
    
  • $_SESSION = [
        '__flash' => [],
    ];