Skip to content

Instantly share code, notes, and snippets.

@Asgaroth
Created July 15, 2012 22:21
Show Gist options
  • Save Asgaroth/3118907 to your computer and use it in GitHub Desktop.
Save Asgaroth/3118907 to your computer and use it in GitHub Desktop.
Yii Foundation 3 Custom Dropdowns
<?php $form=$this->beginWidget('foundation.widgets.FounActiveForm', array(
"type" => 'custom'
)); ?>
<?php echo $form->dropdownlistRow( $model, "field27", array(
"1" => "This is a dropdown",
"2" => "This is another option",
"3" => "Look, a third option",
)); ?>
<?php echo $form->dropdownlistRow( $model, "field28", array(
"1" => "This is a dropdown",
"2" => "This is another option",
"3" => "Look, a third option",
)); ?>
<?php $this->endWidget(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment