Magento - Dynamic Listbox in a custom module
I wish to make a dynamic listbox in a magento custom module, in magento backend, with a custom table in database, and than process this data to e开发者_StackOverflow中文版xecute an update query in another table.
you have to define the source model of this select box and then make a class for it and query or add what you need to this select. For example open up the "yesno" class and see how it adds the values:
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
精彩评论