</div> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Checklist</h3> </div> <div class="panel-body"> <div class="form-group"> <?php echo $form->labelEx($model, 'checklist', array('class' => 'control-label col-sm-4')); ?> <div class="col-sm-8"> <div class="checkbox"> <?php echo $form->checkBoxList($model, 'checklist', MaternalHealth::getChecklist()); ?> </div> <?php echo $form->error($model, 'checklist', array('class' => 'text-danger')); ?> </div> </div> </div> </div> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Micronutrient Supplementation</h3> </div>
/** * 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 MaternalHealth the loaded model * @throws CHttpException */ public function loadModel($id) { $model = MaternalHealth::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }