Get the current category in Magento

I’ve come across several places where I’ve needed to get the current category (or information from it) in one way or another. Some blocks have the ability to do this: $_category = $this->getCurrentCategory(); However, if you need to get the current category in a block (or model, helper, whichever) where this method isn’t present, then […]