41 lines
717 B
PHP
41 lines
717 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use Config\Database;
|
|
use App\Modules\DynamicForms\Libraries\DynamicList;
|
|
use App\Libraries\QrCodeService;
|
|
class Inventaire extends BaseController
|
|
{
|
|
|
|
public function test($go)
|
|
{
|
|
|
|
session()->set('test_ci', 'OK_CI4');
|
|
echo 'CI4 session écrite';
|
|
exit;
|
|
|
|
|
|
$go="inventaire/redirect/3";
|
|
|
|
|
|
$qr = new QrCodeService();
|
|
|
|
$code = $qr->get($go);
|
|
echo('<img src="data:image/png;base64,'. $code.'" width="120">');
|
|
exit;
|
|
}
|
|
public function redirect($go)
|
|
{
|
|
|
|
return redirect()->to('/v4/dynamic/edit/inventaire_stock/'.$go);
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
|
|
|
|
return view('inventaire/index');
|
|
}
|
|
}
|