Magento Methods getModel, getData
getModel()The getModel() function is used to create an instance of a Model class. For example: $Product = Mage::getModel(’catalog/product’); this tells magento to create instance of Mage_Catalog_Model_Product class Some useful methods include getName, getPrice, getTypeId, getStatus which we can execute like <?php echo ‘Name: ‘. $Product->getName();?> <?php echo ‘Price: ‘ . ...
Recent Comments