From c8f48e64436dd532f6ab71019d174d95070dc235 Mon Sep 17 00:00:00 2001 From: "choi.jh" Date: Wed, 25 Jun 2025 15:03:06 +0900 Subject: [PATCH] dbms_init...1 --- app/Controllers/CommonController.php | 3 +++ app/Services/CommonService.php | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/CommonController.php b/app/Controllers/CommonController.php index 6c594f9..4539ff0 100644 --- a/app/Controllers/CommonController.php +++ b/app/Controllers/CommonController.php @@ -684,6 +684,9 @@ abstract class CommonController extends BaseController // 현재 URL을 스택에 저장 helper(['form']); $this->entities = $this->index_process(); + if (env('app.debug.index')) { + echo $this->getService()->getModel()->getLastQuery() . "
"; + } return $this->getResultSuccess(); } catch (\Exception $e) { return $e->getMessage(); diff --git a/app/Services/CommonService.php b/app/Services/CommonService.php index 56b72c0..29d0716 100644 --- a/app/Services/CommonService.php +++ b/app/Services/CommonService.php @@ -87,9 +87,6 @@ abstract class CommonService foreach ($this->findAllDatas($columns) as $entity) { $entities[$entity->getPK()] = $entity; } - if (env('app.debug.index')) { - echo $this->getModel()->getLastQuery() . "
"; - } return $entities; } // //기본 기능부분