/** * Returns the data model based on the primary key given in the GET variable. * If the data model is not found, an HTTP exception will be raised. * @param integer $id the ID of the model to be loaded * @return PropertyDetails the loaded model * @throws CHttpException */ public function loadModel($id) { $model = PropertyDetails::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
?> </div> <?php //echo $form->error($model,'enquiry_date'); ?> </div> <!-- <div class="proper-rgt"> <div class="txt-log"><?php echo $form->labelEx($model, 'property_id'); ?> </div> <div class="txt-box"><?php echo $form->dropDownList($model, 'property_id', CHtml::listData(PropertyDetails::model()->findAll(), 'id', 'propert_name'), array('empty' => '--Select Source--')); ?> <?php //echo $form->error($model,'enquiry_source'); ?> </div> </div>---> <div class="proper-rgt"> <div class="txt-log"><?php echo $form->labelEx($model, 'enquiry_source'); ?> </div> <div class="txt-box"><?php echo $form->dropDownList($model, 'enquiry_source', CHtml::listData(Source::model()->findAll(), 's_tite', 's_tite'), array('empty' => '--Select Source--'));