2017-03-16 10:45:52 2020次浏览 1条回答 0 悬赏 10 金钱

<title><?= Html::encode($this->title) ?></title>yii的设置标题的這个,应该如何设置呢,我想要在控制器里面设置,

$this->getView()->title = "your title";

使用了這个上面的這个方法单是没有传递过去。

您需要登录后才可以回答。登录 | 立即注册
ok
助理

ok

注册时间:2017-03-01
最后登录:2022-03-22
在线时长:14小时45分
  • 粉丝1
  • 金钱50
  • 威望0
  • 积分190

热门问题