Pages

Friday 7 September 2012

how to all record from table in magento

$allCollection=Mage::getModel("web/web")->getCollection();
 echo $allCollection;
 foreach($allCollection as $objRow)
 {

echo '<tr><td>'.$objRow->Title.'</td>';
echo '<td>'.$objRow->Content.'</td>';
echo '<td> <img src="'.$imgpathcustom.'/'.$objRow->Filename.'" height="70" width="70" /></td>';
//echo '<td>'.$objRow->Filename.'</td>';

echo '<td>'.$objRow->Status.'</td></tr>';


   // print_r($objRow);
}
?>

No comments:

Post a Comment