首頁 資訊 View not Found – yii\base\ViewNotFoundException

View not Found – yii\base\ViewNotFoundException

來源:泰然健康網 時間:2025年05月20日 02:06

1. in /home/sanhe/sanhewebsite/vendor/yiisoft/yii2/base/View.php at line 233

224225226227228229230231232233234235236237238239240241242

{ $viewFile = $requestedFile = 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[] = [ 'resolved' => $viewFile,

150151152153154155156157158159160161162

* @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); }

3. in /home/sanhe/sanhewebsite/vendor/yiisoft/yii2/base/Controller.php at line 384 – yiibaseView::render()

378379380381382383384385386387388389390

* These parameters will not be available in the layout. * @return string the rendering result. * @throws InvalidArgumentException 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); }

57585960616263646566676869

return $this->render('index',[ 'cateList'=>$cateList, ]); } public function actionList(){

5. frontendcontrollersZtxljkController::actionIndex()

6. in /home/sanhe/sanhewebsite/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array()

515253545556575859

$args = $this->controller->bindActionParams($this, $params); Yii::debug('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); } }

151152153154155156157158159160161162163

} $result = null; if ($runAction && $this->beforeAction($action)) { $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); foreach ($modules as $module) {

522523524525526527528529530531532533534

$parts = $this->createController($route); if (is_array($parts)) { 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; }

979899100101102103104105106107108109

$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {

380381382383384385386387388389390391392

{ 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();

11121314151617

require __DIR__ . '/../../common/config/main.php', require __DIR__ . '/../../common/config/main-local.php', require __DIR__ . '/../config/main.php', require __DIR__ . '/../config/main-local.php' ); (new yiiwebApplication($config))->run();

Warning: touch(): Utime failed: Permission denied in /home/sanhe/sanhewebsite/vendor/yiisoft/yii2-debug/src/LogTarget.php on line 85

相關知識

Page not found
[參考]紅棗酸奶的開發(fā)與研究.doc
2031 年移動健康 (mHealth) 應用市場范圍及分析
2031 年骨骼和關節(jié)健康補品市場趨勢分析
健康自我監(jiān)測技術市場規(guī)模、分析、頂級參與者 2031
2031 年有機乳制品市場動態(tài)
2031 年美容飲料市場規(guī)模及增長展望
減肥藥市場范圍和分析 2024
腸道和消化健康成分市場趨勢與分析 2031
2031 年果汁飲料市場的增長動力和范圍

網址: View not Found – yii\base\ViewNotFoundException http://www.u1s5d6.cn/newsview1286963.html

推薦資訊