I want to to display attribute value in Product view page. link
I'm trying following code :
echo $_attribute->getProductAttribute()->getAttributeCode();
or
$_attribute_code = Mage::getModel('eav/entity_attribute')->load($_attribute->getAttributeId())->getAttributeCode();
I replaced attribute code : "brand" in above code and using :
echo $_attribute->getProductAttribute()->getbrand();
or
$_brand = Mage::getModel('eav/entity_attribute')->load($_attribute->getAttributeId())->type();
but it's not working : Fatal error: Call to a member function getAttributeId() on a non-object in
Please help me to find where i am missing.