예제 #1
0
 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     $model = new Pago('search');
     $modelDV = new DocumentoForm();
     // Código para redireccionar a ver los *.pdf
     if (isset($_POST['DocumentoForm'])) {
         $modelDV->attributes = $_POST['DocumentoForm'];
         if (!($b = MensualidadPago::getValidarIntervaloFecha($modelDV->fechaInicio, $modelDV->fechaFin, $modelDV->fechaInicio))) {
             throw new CHttpException(404, 'Rango Fechas No Válido.');
         }
         $this->actionDeudaCon($modelDV);
     }
     $modelDV->unsetAttributes();
     // clear any default values
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Pago'])) {
         $model->attributes = $_GET['Pago'];
     }
     $this->render('index', array('model' => $model, 'modelDV' => $modelDV));
 }
예제 #2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Pago('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Pago'])) {
         $model->attributes = $_GET['Pago'];
     }
     $this->render('admin', array('model' => $model));
 }