Magento - registry and current category
问题 I have a question about Mage::registry and categories: I'm a on a category page, I retrieve current category by Mage::registry('current_category') . I've noticed that it works only for root categories, in fact if I visit a subcategory page I retrieve always the root category with Mage::registry('current_category') . So the question is: is something about backend configuration, cache or something else? 回答1: OOB, current_category is set in Mage_Catalog CategoryController::_initCategory() (ref