?> <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'); ?> <span class="required">*</span></label> <div class="desc"> <?php echo $form->dropDownList($model, 'office_province', OmmuZoneProvince::getProvince($model->office_country)); ?> <?php echo $form->error($model, 'office_province'); ?> </div> </div> <div class="clearfix"> <label><?php echo $model->getAttributeLabel('office_zipcode'); ?> <span class="required">*</span></label> <div class="desc"> <?php echo $form->textField($model, 'office_zipcode', array('maxlength' => 6, 'class' => 'span-3'));
/** * 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 = OmmuZoneProvince::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, Yii::t('phrase', 'The requested page does not exist.')); } return $model; }