如何在magento中获取页面标题?

Rah*_*gla 8 php magento magento-1.7

任何方式获得magento页面标题 ...我有一个脚本现场人..在这我需要当前页面标题..所以任何人都可以告诉我如何获得当前页面标题?

Muf*_*dal 34

使用此代码

$this->getLayout()->getBlock('head')->getTitle();
Run Code Online (Sandbox Code Playgroud)

你可以在你的phtml文件中使用这段代码