Example #1
0
 public function inicio()
 {
     if ($_POST) {
         switch ($_POST['ac']) {
             case '1':
                 $this->data->prueba3($_POST['nombre']);
                 break;
             case '2':
                 $this->data->prueba4($_POST['nombre'], $_POST['nombreE']);
                 break;
             case '3':
                 $this->data->prueba5($_POST['nombreD']);
                 break;
         }
     }
     $dato[0] = $this->data->prueba2();
     $dato[1] = $this->data->prueba();
     renderResponse(view_prueba::index('hola.html', "Prueba", $dato));
 }
 public function inicio()
 {
     renderResponse(view_prueba::index('hola.html', "Prueba"));
 }