From 8ac44972060aa6220f81a9bd61160d3fc4d3bf1c Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 10 Aug 2023 18:17:09 -0400 Subject: [PATCH] url segments --- www-api/app/Controllers/WrenchMedia.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www-api/app/Controllers/WrenchMedia.php b/www-api/app/Controllers/WrenchMedia.php index 280963a1..2b9ebebc 100644 --- a/www-api/app/Controllers/WrenchMedia.php +++ b/www-api/app/Controllers/WrenchMedia.php @@ -37,7 +37,14 @@ class WrenchMedia extends BaseController // header("Content-Length: " . $fileData["FileSize"]); // readfile($file); // ob_end_flush(); + $segs = $this->uri->segment_array(); + foreach ($segs as $segment) + { + echo $segment; + echo '
'; + } + $file = 'books.png'; if (file_exists($file)) {