<td><strong>Fecha de envío</strong></td> <td><strong>Descripción</strong></td> <td><strong></strong></td> <td><strong></strong></td> <td><strong></strong></td> </tr> <?php foreach ($model as $row) { ?> <tr> <td><?php echo $row->ID_SOLICITUD; ?> </td> <td><?php echo Estadosolicitud::findOne($row->ID_ESTADO)->ESTADO; ?> </td> <td><?php if (TipoViajeForm::nombrePorID($row->ID_TIPO_DE_VIAJE)) { echo TipoViajeForm::nombrePorID($row->ID_TIPO_DE_VIAJE)->NOMBRE_TIPO_DE_VIAJE; } ?> </td> <td><?php echo $row->FECHA_SOLICITUD; ?> </td> <td width="400"><?php
/** * Finds the Estadosolicitud model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return Estadosolicitud the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { PermisosController::permisoAdministrador(); if (($model = Estadosolicitud::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }