How to display all product attribute in my custom grid i am using the below code but its returning results in array format can you please correct me where i am doing wrong
$this->addColumn('action',
array(
'header' => Mage::helper('kems')->__('Magento Attribute'),
'width' => '100',
'align' => 'center',
'type' => 'select',
'getter' => 'getId',
'renderer' => 'Kensium_Kems_Block_Adminhtml_Renderer_Attribute',
'filter' => false,
'sortable' => false,
'index' => 'magento_attribute',
'is_system' => true,
));
===================================================
public function render(Varien_Object $row)
{
$url ='';
$html =array();
$attributes = Mage::getResourceModel('catalog/product_attribute_collection')
->getItems();
foreach ($attributes as $attribute){
$html[] = $attribute->getFrontendLabel();
}
//echo '<pre>';
print_r($html);
//die;
return array_keys($html);
}