/** * Finds the Estadogasto model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return Estadogasto the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { PermisosController::permisoAdministrador(); if (($model = Estadogasto::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }
<th> Aceptar/Rechazar Gasto</th> </tr> <?php foreach ($model as $row) { ?> <tr> <td><?php echo $row->ID_GASTO; ?> </td> <td><?php echo $row->ID_VIAJE; ?> </td> <td><?php echo Estadogasto::findOne($row->ID_ESTADO_GASTO)->ESTADO_GASTO; ?> </td> <td><?php echo $row->NOMBRE_GASTO; ?> </td> <td><?php echo $row->MONTO_GASTO; ?> </td> <td><?php echo $row->FECHA_GASTO; ?> </td> <td><a href="<?php