?> <?php echo $form->error($model, 'loc_city'); ?> </div> <?php } else { ?> <div class="rowold"> <?php echo $form->labelEx($model, 'city_id'); ?> <?php echo $form->dropDownList($model, 'city_id', Apartment::getCityArray(), array('class' => 'width240')); ?> <?php echo $form->error($model, 'city_id'); ?> </div> <?php } ?> <div class="rowold no-mrg"> <?php echo $form->label($model, 'price', array('required' => true)); ?>