Skip to content

Instantly share code, notes, and snippets.

@alexdrupal
Created November 18, 2013 14:24
Show Gist options
  • Save alexdrupal/7528583 to your computer and use it in GitHub Desktop.
Save alexdrupal/7528583 to your computer and use it in GitHub Desktop.
Magento add country select to Form
<?php
$fieldset->addField('country_id', 'select', array(
'name' => 'country_id',
'label' => $this->__('Country'),
'values' => Mage::getModel('adminhtml/system_config_source_country')->toOptionArray(),
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment