function getIngrediente() { $ingrediente = new Ingrediente(); return $ingrediente->getBy("nombreIng", $_POST['nombre']); }