yii设置网页标题方法
yii设置网页的标题方法
1.现在layout上面的title标签的地方写上
<title><?php echo $this->pageTitle; ?><title>
2.然后在具体的网页上输出内容为
$this->pageTitle="这儿是标题"
3.即可
yii设置网页的标题方法
1.现在layout上面的title标签的地方写上
<title><?php echo $this->pageTitle; ?><title>
2.然后在具体的网页上输出内容为
$this->pageTitle="这儿是标题"
3.即可