public function loadModel($id) { $model = ProMasterBathroom::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
echo $form->error($model, 'max_bedroom'); ?> </div> <?php echo $form->labelEx($model, 'bathrooms', array('label' => '# of Bedrooms', 'class' => 'lb')); ?> <div class="clearfix"> <div class="col-1"> <?php echo $form->dropDownList($model, 'min_bathroom', ProMasterBathroom::getListBathroom("enquiry"), array('empty' => 'Minimum')); ?> </div> <div class="col-2"> <?php echo $form->dropDownList($model, 'max_bathroom', ProMasterBathroom::getListBathroom("enquiry"), array('empty' => 'Maximum')); ?> </div> <?php echo $form->error($model, 'min_bathroom'); ?> <?php echo $form->error($model, 'max_bathroom'); ?> </div> <?php echo $form->labelEx($model, 'furnished', array('label' => 'Furnished', 'class' => 'lb')); ?> <ul class="list-check list-check-2 clearfix"> <?php