dbms_init...1

This commit is contained in:
최준흠 2025-05-22 17:02:17 +09:00
parent 977d07a1ba
commit c080d30e92
4 changed files with 8 additions and 5 deletions

View File

@ -54,6 +54,7 @@ abstract class EquipmentController extends AdminController
}
$options[$field] = $temps;
// dd($options);
break;
case 'lineinfo_uid':
$temps = [];
foreach ($this->getLineService()->getEntities() as $entity) {
@ -61,6 +62,7 @@ abstract class EquipmentController extends AdminController
}
$options[$field] = $temps;
// dd($options);
break;
default:
$options = parent::getFormFieldOption($field, $options);
break;

View File

@ -54,7 +54,6 @@ class MyLogController extends AdminController
$temps[$entity->getPK()] = $entity->getTitle();
}
$options[$field] = $temps;
// dd($options);
break;
default:
$options = parent::getFormFieldOption($field, $options);

View File

@ -111,7 +111,7 @@ abstract class CommonController extends BaseController
{
switch ($field) {
default:
$options = lang($this->getService()->getClassPath() . '.' . strtoupper($field));
$options[$field] = lang($this->getService()->getClassPath() . '.' . strtoupper($field));
break;
}
if (!is_array($options)) {
@ -125,7 +125,10 @@ abstract class CommonController extends BaseController
if (is_array($field)) {
throw new \Exception(__FUNCTION__ . "에서 field array 입니다.\n" . var_export($field, true));
}
$options[$field] = $this->getFormFieldOption($field, $options);
if (!array_key_exists($field, $options)) {
$options[$field] = [];
}
$options = $this->getFormFieldOption($field, $options);
}
// dd($options);
return $options;
@ -170,7 +173,6 @@ abstract class CommonController extends BaseController
case 'modify_form':
case 'index':
case 'view':
// dd($this->getViewDatas());
$this->getHelper()->setViewDatas($this->getViewDatas());
$result = view($this->view_path . $action, ['viewDatas' => $this->getViewDatas()]);
break;

View File

@ -1,6 +1,6 @@
<?= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
<?= $this->section('content') ?>
<?php if ($error = session('error')): ?><?= $viewDatas['helper']->alert($error) ?><?php endif ?>
<?php if ($error = session('error')): ?><div style="border:1px solid red;"><?= $error ?></div><?php endif ?>
<!-- Layout Right Start -->
<div id="container" class="layout_content">
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />