public function indexAction()
{
$this->loadLayout();
$this->_initLayoutMessages('customer/session');
$this->_initLayoutMessages('catalog/session');
//load meta info
$head = $this->getLayout()->getBlock('head');
$head->setTitle("GoGear - support & warranty");
$head->setKeywords("gogear, support, warranty, contact us, faq, manual, guarantee");
$head->setDescription("Get help on your products and warranty information by selecting your country.");
$this->renderLayout();
}

本文介绍了一个Magento应用程序中如何加载布局并设置页面的元信息,包括标题、关键词和描述。通过实例展示了如何利用 Magento 的布局系统进行页面元信息的定制。
171

被折叠的 条评论
为什么被折叠?



