production/Controleur/ControleurAjaxrecherchecodetable.php
2025-12-02 11:29:44 +00:00

27 lines
568 B
PHP
Executable File

<?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';
}
}