<?php echo $form->errorSummary($model); ?> <div class="row"> <?php //echo $form->textField($model,'brand_id'); ?> <?php echo $form->labelEx($model, 'brand_id'); ?> <?php echo $form->dropDownList($model, 'brand_id', CHtml::listData(brands::model()->findAll(), 'brand_id', 'brand_name')); ?> <?php echo $form->error($model, 'brand_id'); ?> </div> <div class="row"> <!-- <?php echo $form->labelEx($model, 'model_id'); ?> <?php echo $form->textField($model, 'model_id');