-
- kiatng

-
Total Posts: 870
Joined: 2008-09-03
Kuala Lumpur, Malaysia
|
First, you may like to try docs.magentocommerce.com to search for location of a particular method. But in this case, the first place to look for getMessageBlock is in app/core/Mage/Catalog/Block/Product/View.php. If you look at the directory structure, you’ll see that it is similar to product/view.phtml. If the method is not there, then it is in the parent class. (If you can’t find the method anywhere else, then it may be the magic getter method because all/most (I’m not sure) classes have their roots as a Verian Object.) Because there is a getGroupedHtml(), we can safely tell that getMessageBlock returns an object, probably of Model Class. And when I looked it up in docs.magentocommerce.com, it is in fact of type Mage_Core_Block_Messages.
Actually, if all you want to do is to call a custom block, then knowing the above may not help in your case. Easiest way is to declare your block in checkout.xml.
|