From 4f0e8869ceef4b388108f3e3c9a26eab10d3267b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Thu, 22 May 2025 17:09:38 +0900 Subject: [PATCH] dbms_init...1 --- .../Admin/Equipment/Link/LinkController.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/Controllers/Admin/Equipment/Link/LinkController.php b/app/Controllers/Admin/Equipment/Link/LinkController.php index 42db3cf..d18602e 100644 --- a/app/Controllers/Admin/Equipment/Link/LinkController.php +++ b/app/Controllers/Admin/Equipment/Link/LinkController.php @@ -4,6 +4,7 @@ namespace App\Controllers\Admin\Equipment\Link; use App\Controllers\Admin\Equipment\EquipmentController; +use CodeIgniter\HTTP\RedirectResponse; use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use Psr\Log\LoggerInterface; @@ -23,4 +24,19 @@ abstract class LinkController extends EquipmentController $this->getService()->getModel()->orderBy('serviceinfo_uid', 'ASC', false); parent::setOrderByForList(); } + + protected function getResultPageByActon(string $action, string $message = MESSAGES["SUCCESS"]): RedirectResponse|string + { + switch ($action) { + case 'index': + case 'view': + $this->getHelper()->setViewDatas($this->getViewDatas()); + $result = view($this->view_path . 'popup' . DIRECTORY_SEPARATOR . $action, ['viewDatas' => $this->getViewDatas()]); + break; + default: + $result = parent::getResultPageByActon($action, $message); + break; + } + return $result; + } }