diff --git a/app/Config/Routes.php b/app/Config/Routes.php
index ae6022f..c0e3e15 100644
--- a/app/Config/Routes.php
+++ b/app/Config/Routes.php
@@ -37,8 +37,8 @@ $routes->group('admin', ['namespace' => 'App\Controllers\Admin', 'filter' => 'au
$routes->post('batchjob', 'UserController::batchjob', ['filter' => 'authFilter:master']);
$routes->post('batchjob_delete', 'UserController::batchjob_delete', ['filter' => 'authFilter:master']);
$routes->get('download/(:alpha)', 'UserController::download/$1', ['filter' => 'authFilter:master']);
- $routes->get('individual_modify/(:num)', 'UserController::individual_modify_form/$1', ['filter' => 'authFilter:manager']);
- $routes->post('individual_modify/(:num)', 'UserController::individual_modify/$1', ['filter' => 'authFilter:manager']);
+ $routes->get('profile_modify/(:num)', 'UserController::profile_modify_form/$1', ['filter' => 'authFilter:manager']);
+ $routes->post('profile_modify/(:num)', 'UserController::profile_modify/$1', ['filter' => 'authFilter:manager']);
});
$routes->group('mylog', ['namespace' => 'App\Controllers\Admin'], function ($routes) {
$routes->get('/', 'MyLogController::index');
diff --git a/app/Controllers/Admin/Customer/ServiceItemController.php b/app/Controllers/Admin/Customer/ServiceItemController.php
index 4651929..e5aadba 100644
--- a/app/Controllers/Admin/Customer/ServiceItemController.php
+++ b/app/Controllers/Admin/Customer/ServiceItemController.php
@@ -60,8 +60,6 @@ class ServiceItemController extends CustomerController
protected function getResultSuccess(string $message = MESSAGES["SUCCESS"], ?string $actionTemplate = null): RedirectResponse|string
{
switch ($this->getAction()) {
- case 'create_form':
- case 'modify_form':
case 'index':
$result = parent::getResultSuccess($message, $this->request->getVar('ActionTemplate') ?? $actionTemplate ?? 'popup');
break;
diff --git a/app/Controllers/Admin/UserController.php b/app/Controllers/Admin/UserController.php
index 0f5d817..6f7cf79 100644
--- a/app/Controllers/Admin/UserController.php
+++ b/app/Controllers/Admin/UserController.php
@@ -43,18 +43,18 @@ class UserController extends AdminController
protected function getResultSuccess(string $message = MESSAGES["SUCCESS"], ?string $actionTemplate = null): RedirectResponse|string
{
switch ($this->getAction()) {
- case 'individual_modify':
+ case 'profile_modify':
$this->getMyLogService()->save($this->getService()->getClassName(), __FUNCTION__, $message);
$result = $this->view($this->entity->getPK());
break;
- case 'individual_modify_form':
+ case 'profile_modify_form':
$this->control = $this->getControlDatas();
$this->getHelper()->setViewDatas($this->getViewDatas());
$actionTemplate = $this->request->getVar('ActionTemplate') ?? $actionTemplate;
if ($actionTemplate) {
- $view_file = $this->view_path . $actionTemplate . DIRECTORY_SEPARATOR . $this->getAction();
+ $view_file = $this->view_path . $actionTemplate . DIRECTORY_SEPARATOR . 'modify_form';
} else {
- $view_file = $this->view_path . $this->getAction();
+ $view_file = $this->view_path . 'modify_form';
}
$result = view($view_file, ['viewDatas' => $this->getViewDatas()]);
break;
@@ -78,11 +78,11 @@ class UserController extends AdminController
return $validation;
}
//Index,FieldForm관련.
- protected function individual_modify_form_process(mixed $entity): mixed
+ protected function profile_modify_form_process(mixed $entity): mixed
{
return $entity;
}
- final public function individual_modify_form(mixed $uid): RedirectResponse|string
+ final public function profile_modify_form(mixed $uid): RedirectResponse|string
{
try {
//각 Field 초기화
@@ -108,20 +108,20 @@ class UserController extends AdminController
if (!$entity) {
throw new \Exception("{$uid}에 대한 정보를 찾을수 없습니다.");
}
- $this->entity = $this->individual_modify_form_process($entity);
+ $this->entity = $this->profile_modify_form_process($entity);
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
return $this->getResultSuccess();
} catch (\Exception $e) {
return $this->getResultFail($e->getMessage());
}
}
- protected function individual_modify_process(mixed $entity, array $formDatas): mixed
+ protected function profile_modify_process(mixed $entity, array $formDatas): mixed
{
//데이터 검증
$formDatas = $this->doValidate($this->getFieldRules(), $formDatas);
return $this->getService()->modify($entity, $formDatas);
}
- final public function individual_modify(int $uid): RedirectResponse|string
+ final public function profile_modify(int $uid): RedirectResponse|string
{
//Transaction Start
$this->getService()->getModel()->transStart();
@@ -145,7 +145,7 @@ class UserController extends AdminController
if (!$entity) {
throw new \Exception("{$uid}에 대한 정보를 찾을수 없습니다.");
}
- $this->entity = $this->individual_modify_process($entity, $formDatas);
+ $this->entity = $this->profile_modify_process($entity, $formDatas);
$this->getService()->getModel()->transCommit();
return $this->getResultSuccess();
} catch (\Exception $e) {
diff --git a/app/Views/admin/create_form.php b/app/Views/admin/create_form.php
index d089ec2..c12faa0 100644
--- a/app/Views/admin/create_form.php
+++ b/app/Views/admin/create_form.php
@@ -2,17 +2,9 @@
= $this->section('content') ?>
alert($error) ?>
-
-
-
-
-
-
-
-
-
+
= $this->include("templates/{$viewDatas['layout']}/form_content_top"); ?>
= form_open(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
-