/** * 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 OrganizationTypes the loaded model * @throws CHttpException */ public function loadModel($id) { $model = OrganizationTypes::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
echo $form->labelEx($model, 'memberID'); ?> <?php echo CHtml::activeDropDownList($model, 'memberID', Chtml::listData(Members::model()->findAll(), 'memberID', 'memberName'), array('empty' => 'Select a Country')); ?> <?php echo $form->error($model, 'memberID'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'organizationTypeID'); ?> <?php echo CHtml::activeDropDownList($model, 'organizationTypeID', Chtml::listData(OrganizationTypes::model()->findAll(), 'organizationTypeID', 'organizationTypeName'), array('empty' => 'Select Organization Type')); ?> <?php echo $form->error($model, 'organizationTypeID'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'organizationName'); ?> <?php echo $form->textField($model, 'organizationName', array('size' => 60, 'maxlength' => 100)); ?> <?php echo $form->error($model, 'organizationName');