Often I'm working on a Magento template or block and while looking for a variable I try to use a getter method.
I use xDebug so normally I just go through the debugger and find what I need and guess the getter method, and usually it works. for example:
This usually gives me an expression like the below:
While this works it does not seem to be the best way to do it, I've tried using
$program->getType(); but it doesn't work.
Am I missing something? The example above is from a custom module, I thought with Magento's Magic Getter & Setter methods it should still work. Although, looking at this module the block in question inherits or extends from Mage_Core_Block_Template