Import initial du projet Production
This commit is contained in:
32
Controleur/ControleurAjaxged.php
Normal file
32
Controleur/ControleurAjaxged.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Ged.php';
|
||||
|
||||
class ControleurAjaxged extends Controleur {
|
||||
private $ged;
|
||||
|
||||
public function __construct() {
|
||||
$this->ged = new Ged();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
// $this->genererVueAjax(array('reponse' => $reponse));
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function verifierexistancefichier()
|
||||
{
|
||||
$cheminFichier = $this->requete->getParametreFormulaire("cheminFichier");
|
||||
|
||||
if(file_exists($cheminFichier))
|
||||
{
|
||||
$reponse = "1";
|
||||
} else
|
||||
{
|
||||
$reponse = "0";
|
||||
}
|
||||
|
||||
echo "$reponse";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user