/** * 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 Participante the loaded model * @throws CHttpException */ public function loadModel($id) { $model = Participante::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
<page backtop="20mm" backbottom="10mm" > <?php $participantes = Participante::model()->findAll(array('condition' => 'ACTA_ID=' . $model->IDACTA)); $this->renderPartial('header', array('parametro' => $parametro, 'model' => $model, 'secretaria' => $secretaria)); $this->renderPartial('footer', array('pie' => $parametro->PIE_PAGINA)); ?> <div class="title-red" >Participantes en la visita de auditoría</div> <table class="final" > <tr class="col-title-final"> <th style="width: 8px;"> No. </th> <th style="width: 112px;"> Instancia </th> <th style="width: 200px;"> Nombres y Apellidos </th> <th style="width: 65px;"> Tipo ID </th> <th style="width: 100px;"> Número Identificación </th> <th style="width: 100px;"> Cargo </th> <th style="width: 50px;"> Fecha de Firma </th>