28 lines
652 B
PHP
28 lines
652 B
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/College_temp.php';
|
|
|
|
class ControleurAjaxchangecategorie extends Controleur {
|
|
private $college_temp;
|
|
|
|
public function __construct() {
|
|
$this->college_temp = new College_temp();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$this->genererVueAjax();
|
|
}
|
|
|
|
public function changecategorie()
|
|
{
|
|
$codeProduit = $this->requete->getParametreFormulaire("codeProduit");
|
|
|
|
$categorie = $this->college_temp->changecategorie($codeProduit);
|
|
|
|
// var_dump($categorie);
|
|
// exit();
|
|
|
|
$this->genererVueAjax(array('categorie' => $categorie));
|
|
}
|
|
} |