?> <span class="small-px silent"><?php echo Yii::t('phrase', 'The number, street, district and village of the postal address for this business'); ?> </span> </div> </div> <div class="clearfix"> <label><?php echo $model->getAttributeLabel('office_city'); ?> <span class="required">*</span></label> <div class="desc"> <?php echo $form->dropDownList($model, 'office_city', OmmuZoneCity::getCity($model->office_province)); ?> <?php echo $form->error($model, 'office_city'); ?> <span class="small-px silent"><?php echo Yii::t('phrase', 'The city (or locality) line of the postal address for this business'); ?> </span> </div> </div> <div class="clearfix"> <label><?php echo $model->getAttributeLabel('office_province'); ?>
/** * 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 the ID of the model to be loaded */ public function loadModel($id) { $model = OmmuZoneCity::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, Yii::t('phrase', 'The requested page does not exist.')); } return $model; }