getSuggestData(); $html = ''; $count=count($suggestData); $count--; $index =0; $html = ''; return $html; } public function getSuggestData() { if($attributecode=$this->getRequest()->getParam('arw_attributecode')){ $_product = Mage::getModel('catalog/product'); $_attributes = Mage::getResourceModel('eav/entity_attribute_collection') ->addFieldToFilter('attribute_code',array('like'=>'%'.$attributecode.'%')) ->setEntityTypeFilter($_product->getResource()->getTypeId()); return $_attributes; } return ''; } }