关于layouts/main.php 里的<?php $this->endPage() ?> [ 2.0 版本 ]
main.php里面是这样写的
<?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<?php $this->beginBody() ?>
<?=$content?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
然后页面正常 但尾部有一个
我是把main.php里的<?php $this->endPage() ?>给去掉就好了 或者去掉<?php $this->endBody() ?>
想问下 为啥会有这个404 应该怎么去掉?
最佳答案
其他 0 个回答
没有找到数据。
fdzaxd
注册时间:2016-06-22
最后登录:2020-06-18
在线时长:36小时47分
最后登录:2020-06-18
在线时长:36小时47分
- 粉丝5
- 金钱21065
- 威望0
- 积分21425