Go to the source code of this file.
◆ base()
Definition at line 2 of file base.php.
References $_GET, $_SERVER, $DIC, and exit.
7 if (isset(
$_GET[
'example']) &&
$_GET[
'example'] == 1) {
8 $upload = $DIC->upload();
14 echo json_encode([
'success' =>
true,
'message' =>
'Successfully uploaded file']);
17 echo json_encode([
'success' =>
false,
'message' => $e->getMessage()]);
22 $uiFactory = $DIC->ui()->factory();
23 $renderer = $DIC->ui()->renderer();
25 $content = $uiFactory->panel()->standard(
'Panel', $uiFactory->legacy(
'Hello World, drag some files over me!'));
26 $uploadUrl =
$_SERVER[
'REQUEST_URI'] .
'&example=1';
28 $upload = $uiFactory->dropzone()->file()->wrapper($uploadUrl, $content);
30 return $renderer->render($upload);
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']