public function nuevoHotel() { $proteccion = new Proteccion(); $nom_hotel = $proteccion->html($_POST['nom_hotel']); $provincia = $proteccion->html($_POST['provincia']); $localidad = $proteccion->html($_POST['localidad']); $calle = $proteccion->html($_POST['calle']); $nro_calle = $proteccion->html($_POST['nro_calle']); $telefono = $proteccion->html($_POST['telefono']); $precio_persona = $proteccion->html($_POST['precio_persona']); $cant_imagenes = $proteccion->html($_POST['cant_imagenes']); $descripcion = $proteccion->html($_POST['descripcion']); $tp = new TemplatePower("templates/AltaHotel.html"); $tp->prepare(); $tp->gotoBlock("_ROOT"); $hotel = new Hotel(); $hotel->setDatosHotel($nom_hotel, $provincia, $localidad, $calle, $nro_calle, $telefono, $precio_persona, $cant_imagenes, $descripcion); $hotel->alta_Hotel(); //para mandar el id del hotel por url $id_hotel = $hotel->get_Id_Hotel(); $tp->newBlock("canthabitaciones"); $tp->assign("id_hotel", $id_hotel); echo $tp->getOutputContent(); }