I have a non eav table with two columns namely a and b with some rows in it. I have a custom tab ,section and field in system config. Now my aim is to show all values containing in those two column in the group fields.Like a's value will be in label field and b value will be in <frontend_type>
and like this it will show all the values from db in config.I searched the net regarding this I got the idea to use <frontend_model>
for this but how am I suppose to return the data after calling Collection in my model and show in system.xml file.
Here's my code of model
<?php
class Home_Test_Model_Adminhtml_System_Config_Source_Url
{
public function show()
{
$show=Mage::getModel('test/test')
->getCollection()
->addFieldToSelect('*');
return $show;
}
}
EDIT: I don't want to show it as <frontend_type>select</frontend_type>
. I want a long list form so <frontend_type>label</frontend_type>
a b
a1 b1
a2 a3
..
....
......
and on