I have a admin back-end options section/module to control few things like upload slider images, site background, banners etc. That is simple cause it just requires xml code in system.xml. I want to add different drop-downs, radio buttons, multiple select. I have the following code in Options.php Its giving me options to select one, two or three for every drop-down, radio or multi select. What I have to define here to get different options? not just one, two and Three.
<?php
class Options_CustomConfig_Model_Options
{
/**
* Provide available options as a value/label array
*
* @return array
*/
public function toOptionArray()
{
return array(
array('value'=>1, 'label'=>'One'),
array('value'=>2, 'label'=>'Two'),
array('value'=>3, 'label'=>'Three')
);
}
}