【发布时间】:2016-10-27 05:10:34
【问题描述】:
我想在特定的 url ... /index.php?r=site%2FChildPage 处呈现一个名为 ChildPage.php 的视图文件。
我写了一个小视图,并在我的SiteController类中添加了方法:
public function actionChildPage()
{
return $this->render('ChildPage');
}
我忘记了什么吗?我的所有其他页面都在工作,但在这个页面上我收到了错误:
Not Found (#404)
Page not found.
【问题讨论】:
标签: php view controller yii2 http-status-code-404