Codegento Who Let Mage Out Of The Cage?

26Mar/1123

How Blocks And PHTML Work Together

Posted by Ben Robie

Early on in my Magento-coding days, I struggled with the relationship between the block classes and the phtml files. Which came first? Who owned who? Do you need blocks? Do you need phtml? First and foremost, we need to understand that the complexity of the layout/block/phtml relationship is necessary, powerful, and flexible. Those three pieces [...]

Read More...