I finally realise Block class in Magento is not like Model class – it has no getters and setters. It breaks MVC logic if we want to set data in Block, that’s why Block has no setters. However, when Block makes a variable which can be used in template. It is a maker, not a… Continue reading Magento Block has no getters and setters