直接在views文件使用下面的方法指定就可以了:
第一
<?php
$this->setPageTitle('Your Title Here');
// or
$this->pageTitle = 'Your Title Here';
?>
第二
或者你可以直接重写setPageTitle这个方法:
class YourController extends Controller
{
public function setPageTitle($value){
$this->pageTitle = Yii::app()->name ." | ". $value ;//这里看你的需求该
}
}
第三
在Controller中直接指定pageTitle:
class YourController extends Controller {
public $pageTitle = 'Your Title Here';
}
Happy Hacking