public function listarIngredienteCarnes() {
     try {
         $ingredientes = new BDIngrediente();
         $lista = $ingredientes->listarIngredienteCarnes();
         return $lista;
     } catch (Exception $ex) {
         return false;
     }
 }
예제 #2
0
function cardapio() {
    $ingrediente = new BDIngrediente();
    $var = json_encode($ingrediente->cardapio()->fetchAll(PDO::FETCH_OBJ));
    return $var;
}