magento get current product information

In this article get current product. In product page get current product information.
We can use the magento registery to get the current product info.

Here is code....
<?php
   $currPid = Mage::registry('current_product')->getId();
   $currProduct = Mage::getModel('catalog/product')->load($currPid);

   echo '<pre>';
   print_r($currProduct->getData());
   echo '<pre>';

?>

Labels: