ページタイトルを設定する
ページタイトルはコントローラで設定するのが良いでしょう。
また、アクセシビリティの観点から、ページ(action)ごとに違うタイトルを付けるのが望ましいと思います。
1.3.x
1.2.xではpageTitle属性に設定していましたが、 1.3.0で廃止されました。このため、以下のように変数に設定します。
class HogesController extends AppController
{
function index()
{
$this->set('title_for_layout', 'View Active Users');
}
}
1.2.x
class HogesController extends AppController
{
function index()
{
$this->pageTitle = 'View Active Users';
}
}
とするとhoges/indexのviewでは設定した文字列「View Active Users」が
「$title_for_layout」に展開されます。