production/Controleur/ControleurAjaxrecherchecodetable.php
2025-12-01 16:12:12 +00:00

27 lines
568 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Produit.php';
class ControleurAjaxrecherchecodetable extends Controleur {
private $produit;
public function __construct() {
$this->produit = new Produit();
}
public function index()
{
}
public function rechercher()
{
$code = $this->requete->getParametreFormulaire("code");
$table = $this->requete->getParametreFormulaire("table");
$bool = $this->produit->existelignetable($code, $table);
echo $bool ? 'true' : 'false';
}
}