Posted By

furehead on 05/18/11


Tagged

silverstripe


Versions (?)

Country Selector DropDown Silverstripe


 / Published in: PHP
 

  1. $countryDD = new CountryDropdownField('iso_3166_countryCode', 'Land', $value="DE");
  2. $countryDD->setHasEmptyDefault(true);
  3. $countryDD->setEmptyString('Land');
  4.  
  5. $fields->push($countryDD);

Report this snippet  

You need to login to post a comment.