/** * 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 PreguntaEspecifica the loaded model * @throws CHttpException */ public function loadModel($id) { $model = PreguntaEspecifica::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
<div style="display: none" id="enviarFormulario"></div> <div class="row"> <div class="pull-right padding-horizontal-15"> <button type="button" id="seguir3" class="btn btn-cancel next-step btn-block" style="width: 300px" >Evaluar <i class="fa fa-check-circle"></i></button> </div> </div> <table id="idPEspesifica" class="table table-bordered table-striped" style="display: none;"> <thead class="text-center"> <tr> <th>ID Pregunta Especifica</th> </tr> </thead> <tbody class="text-center"> <?php $preguntaEspesifica = new PreguntaEspecifica(); $preguntasEspesificas = $preguntaEspesifica->findAll(); $countador = 0; foreach ($preguntasEspesificas as $value) { ?> <tr id="trr<?php echo $countador; ?> "> <td id="pespesifica<?php echo $countador; ?> "> <?php echo $value->id_pregunta_especifica;