Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Magento 中是否有自动将博客文章标识符设置为博客文章标题?
谢谢
在您的 Block_prepareLayout()方法中,编写下面的代码行以使用您的博客文章 ID 设置页面的标题。
_prepareLayout()
$this->getLayout()->getBlock('head')->setTitle($id);