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 中创建一个页面,其中页面标题应根据$_SERVER['REQUEST_URI'].
$_SERVER['REQUEST_URI']
通过代码访问头块元素并在其上调用 setTitle('your title') 方法
$this->getLayout()->getBlock('head')->setTitle('your title');
您可以添加$_SERVER['REQUEST_URI']inSet 标题参数,
让我知道我是否可以进一步帮助您。