Ant*_*n S 27
你可以通过布局文件来做到这一点:
<reference name="head">
<action method="setTitle" translate="title"><title>Your Title</title></action>
</reference>
Run Code Online (Sandbox Code Playgroud)
或通过代码访问head block元素和调用setTitle('your title') 方法
$this->getLayout()->getBlock('head')->setTitle('your title');
Run Code Online (Sandbox Code Playgroud)
grep以获取更多参考:
grep '>setTitle(' app/code/ -rsn
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14766 次 |
| 最近记录: |