<?php
namespace Modules\GlobalApplication\Controller;

use Skeleton\Controller\Controller;

class ChargeDocumentController extends Controller
{
    
    public function chargeDocumentAction() : string
    {
        $emplacement = $this->request->getAttribute('emplacement');
        $urlfichier  = $this->request->getAttribute('urlFichier');
        $modeAffichage = $this->request->getAttribute('modeAffichage');
        
        $urlfichier = str_replace('debut---slash---fin', '\\', $urlfichier);
        
        $helperChDoc = new \Helpers\ChargeDocument\ChargeDocument;
        $test = $helperChDoc->chargeDoc($this->pdo, $urlfichier, $emplacement, $modeAffichage == '1');
           
        return '';
    }
}
