/** * 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 TipoCausa the loaded model * @throws CHttpException */ public function loadModel($id) { $model = TipoCausa::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
</label> <input id="nombreCausaEditar" name="nombreCausaEditar" title="Nombre de Causa" class="form-control"/> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label for="form-field-22"> Tipo de Causa <span class="symbol required"></span> </label> <select id="idTipoCausaCausaEditar" class="js-example-basic-single " name="idTipoCausaCausaEditar" title="Tipo de Causa" tabindex="-1" aria-hidden="true" style="width:100%; height: 40px;"> <?php $tipoCausaSelect = new TipoCausa(); $tiposCausaSelect = $tipoCausaSelect->findAll(); foreach ($tiposCausaSelect as $value) { ?> <option value="<?php echo $value->id_tipo_causa; ?> "> <?php echo $value->nombre; } ?> </option>
} ?> </option> </select> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="control-label"> Tipo(s) de Causa </label> <select id="idTipoCausaSearch" name="idTipoCausaSearch[]" class="js-example-basic-multiple" multiple="multiple" tabindex="1" aria-hidden="true" style="width:100%; height: 40px;"> <option value="">Seleccione</option> <?php $modelTipoCausa = new TipoCausa(); $tiposCausa = $modelTipoCausa->findAll(); foreach ($tiposCausa as $value) { ?> <option value="<?php echo $value->id_tipo_causa; ?> " title=""> <?php echo $value->nombre; } ?> </option>