From 9fdc61332a9244747fddd5db2e6c218cc1e1d947 Mon Sep 17 00:00:00 2001 From: "choi.jh" Date: Wed, 1 Oct 2025 11:46:08 +0900 Subject: [PATCH] dbmsv2_init...1 --- app/Controllers/Admin/SearchController.php | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/app/Controllers/Admin/SearchController.php b/app/Controllers/Admin/SearchController.php index 80f4dc6..8ea71b5 100644 --- a/app/Controllers/Admin/SearchController.php +++ b/app/Controllers/Admin/SearchController.php @@ -118,4 +118,28 @@ class SearchController extends AdminController $this->childServers = $childServers; return $entities; } + public function index(): RedirectResponse|string + { + try { + $this->getService()->setAction(__FUNCTION__); + $this->getService()->setFormFields(); + //전달값정의 + $this->getService()->setFormDatas($this->request->getGet()); + $this->getService()->setFormFilters(); + $this->getService()->setFormRules(); + $this->getService()->setFormOptions(); + helper(['form']); + //Return Url정의 + $this->getService()->getMyAuth()->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : "")); + $entities = $this->index_process(); + $this->total_count = count($entities); + $this->page_options = []; + $this->entities = $entities; + $this->per_page = 200; + $this->page = 1; + return $this->getResultSuccess(); + } catch (\Exception $e) { + return $this->getResultFail($e->getMessage()); + } + } }