Put this line in your drop down attribute:
'values' => DesignerToolSetting_Baseproduct_Block_Adminhtml_Baseproduct_Grid::getValueArray(),
after that make a function in your grid.php
public function getValueArray(){
$valuearray = Array();
$fontcat = Mage::getModel("baseshapes/baseshapes")->getCollection();
//echo '<pre>';
//print_r($fontcat);
//echo '</pre>';die;
//$fontcat->addFilter('status',0);
foreach($fontcat as $categ){
$valuearray[$categ->getId()] = $categ->title;
}
return $valuearray;
}
'values' => DesignerToolSetting_Baseproduct_Block_Adminhtml_Baseproduct_Grid::getValueArray(),
after that make a function in your grid.php
public function getValueArray(){
$valuearray = Array();
$fontcat = Mage::getModel("baseshapes/baseshapes")->getCollection();
//echo '<pre>';
//print_r($fontcat);
//echo '</pre>';die;
//$fontcat->addFilter('status',0);
foreach($fontcat as $categ){
$valuearray[$categ->getId()] = $categ->title;
}
return $valuearray;
}
Comments
Post a Comment