【发布时间】:2014-09-07 21:15:13
【问题描述】:
我一直在制作魔法菜单。我得到了 phtml 中的集合,例如:
<?php $_helper = Mage::helper('catalog/category') ?>
<?php $_categories = $_helper->getStoreCategories() ?>
<?php $currentCategory = Mage::registry('current_category') ?>
现在我必须添加过滤器以显示特定类别。就像我有一个我想要显示的类别的 array(1,2,3,4)。那么如何将过滤器应用于此 Helper。
大家有什么建议请回答。
谢谢。
【问题讨论】:
标签: magento collections categories php