CException

Контроллер BlogController не может найти представление "index".

/home/c19938/needtobuild.ru/vendor/yiisoft/yii/framework/web/CController.php(878)

866     {
867         if(($viewFile=$this->getViewFile($view))!==false)
868         {
869             $output=$this->renderFile($viewFile,$data,true);
870             if($processOutput)
871                 $output=$this->processOutput($output);
872             if($return)
873                 return $output;
874             else
875                 echo $output;
876         }
877         else
878             throw new CException(Yii::t('yii','{controller} cannot find the requested view "{view}".',
879                 array('{controller}'=>get_class($this), '{view}'=>$view)));
880     }
881 
882     /**
883      * Renders a named clip with the supplied parameters.
884      * This is similar to directly accessing the {@link clips} property.
885      * The main difference is that it can take an array of named parameters
886      * which will replace the corresponding placeholders in the clip.
887      * @param string $name the name of the clip
888      * @param array $params an array of named parameters (name=>value) that should replace
889      * their corresponding placeholders in the clip
890      * @param boolean $return whether to return the clip content or echo it.

Stack Trace

#1
+
 /home/c19938/needtobuild.ru/protected/modules/blog/controllers/BlogController.php(30): CController->render("index", array("blogs" => Blog))
25 
26         if (isset($_GET['Blog']['name'])) {
27             $blogs->name = CHtml::encode($_GET['Blog']['name']);
28         }
29 
30         $this->render('index', ['blogs' => $blogs]);
31     }
32 
33     /**
34      * Отобразить карточку блога
35      *
#9
+
 /home/c19938/needtobuild.ru/docs/index.php(39): CApplication->run()
34 $confManager = new yupe\components\ConfigManager();
35 $confManager->sentEnv(\yupe\components\ConfigManager::ENV_WEB);
36 
37 require __DIR__ . '/../vendor/autoload.php';
38 
39 Yii::createWebApplication($confManager->merge($base))->run();
2024-03-19 09:03:56 Apache/2.4.53 (Red Hat Enterprise Linux 8) PHP/7.0.33 Yii Framework/1.1.17