Revision: 39917
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 22, 2011 16:50 by silky
Initial Code
$className = Mage::getConfig()->getBlockClassName('mycompany_catalog/product_list'); $block = new $className(); $block->_prepareData(); if($block->getItems()->getSize()){ $items = $block->getItems(); foreach($items as $_item){ // your code... } }
Initial URL
http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/catalog/call_class_method_from_view
Initial Description
Initial Title
How to call a Block Class Method from a View
Initial Tags
Initial Language
PHP