From 7e68ec59481a775132ab15feac0d64c619fb24b7 Mon Sep 17 00:00:00 2001 From: imnavajas Date: Tue, 4 Jun 2024 23:10:10 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20clase=20intranet=20para=20expone?= =?UTF-8?q?r=20archivos=20detras=20del=20root=5Fpath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci4/app/Controllers/Sistema/Intranet.php | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ci4/app/Controllers/Sistema/Intranet.php diff --git a/ci4/app/Controllers/Sistema/Intranet.php b/ci4/app/Controllers/Sistema/Intranet.php new file mode 100644 index 00000000..48cb27a5 --- /dev/null +++ b/ci4/app/Controllers/Sistema/Intranet.php @@ -0,0 +1,37 @@ +setContentType($mime_type); + + // Set the output + $response->setBody(file_get_contents($resource_path)); + + // Send the response to the browser + $response->send(); + } + + } + +} \ No newline at end of file