I am using a template which calls a function in block, and inside that block I am trying to pull a current category with Mage::registry('current_category')
. However it always returns NULL. I've tried doing this from product page, search page - still nothing. Is there any reason why it would return NULL, what are some things I could check?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…