YII, form simple drop down

YII, form simple drop down

<?php echo $form->dropDownList($model, ‘sex’,
    array(‘1’ => ‘male’, ‘2’ => ‘female’),
    array(’empty’ => ‘Select one of the following…’)
); ?>

Leave a comment

Your email address will not be published. Required fields are marked *