2013-02-21 77 views

回答

0

在你的格擋的_prepareLayout()方法,下面寫一行代碼設置頁面的標題與您的博客帖子的ID。

$this->getLayout()->getBlock('head')->setTitle($id);