Import initial du projet Production
This commit is contained in:
27
Controleur/ControleurAjaxrecherchecodetable.php
Normal file
27
Controleur/ControleurAjaxrecherchecodetable.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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';
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user