magento:在controller中添加breadcrumbs
来源:互联网 发布:php 粘贴 编辑:程序博客网 时间:2024/05/16 11:20
在 controller中:
$this->loadLayout();
$breadCrumb = $this->getLayout()->getBlock('breadcrumbs'); //这是
$breadCrumb->addCrumb('home', array(
'label' => Mage::helper('catalog')->__('Home'),
'title' => Mage::helper('catalog')->__('Go to Home Page'),
'link' => Mage::getBaseUrl(),
))->addCrumb('youhui', array(
'label' => Mage::helper('catalog')->__('youhuihuodong'),
'title' => Mage::helper('catalog')->__('youhuihuodong'),
'link' => $category->getId() ? Mage::getUrl('*/*') : NULL,
))
;
$this->loadLayout();
$breadCrumb = $this->getLayout()->getBlock('breadcrumbs'); //这是
$breadCrumb->addCrumb('home', array(
'label' => Mage::helper('catalog')->__('Home'),
'title' => Mage::helper('catalog')->__('Go to Home Page'),
'link' => Mage::getBaseUrl(),
))->addCrumb('youhui', array(
'label' => Mage::helper('catalog')->__('youhuihuodong'),
'title' => Mage::helper('catalog')->__('youhuihuodong'),
'link' => $category->getId() ? Mage::getUrl('*/*') : NULL,
))
;
- magento:在controller中添加breadcrumbs
- 如何在magento CMS homepage 加上breadcrumbs
- 在Magento中添加一种费用
- magento中创建controller控制器
- 在Magento中为信用卡支付方式添加一些信息
- 在Magento产品管理中添加额外信息
- 如何在magento模板文件中获取controller名称,action名称和module name
- 在一个xib中添加多个Controller
- Magento中添加TAB效果
- Magento分类中添加产品
- magento -- 在Magento中获取SQL语句
- 在magento产品内页添加tab
- magento 在首页左边栏添加分类目录
- Magento模块中添加计划任务Cron Job【magento二次开发】
- 在Magento中使用jquery.
- Magento中目录添加自定义属性代码
- 记录一下JFinal 在controller 添加事务处理
- [addChildViewController]View Controller中可以添加多个sub view,在需要的时候显示出来;
- RTP学习(三):linux下RTP编程(使用 JRTPLIB) ——受益匪浅
- OpenLayers深入浅出(1)----添加地图map
- MySQL数据库中与NULL值有关的几个问题
- 保存复选框(1)
- 转移Itunes目录
- magento:在controller中添加breadcrumbs
- 交叉编译libz libpng
- How To Sort Objects With Java Interface Comparable and Comparator
- VIM 键盘图
- Source Insight 3.5设置支持汇编文件
- POJ 3734 Blocks 矩阵乘法
- Serializable 作用
- Xcode4 SVN配置
- 获取枚举的国际化Key