cfmgrv3 init...2

This commit is contained in:
최준흠 2023-06-19 18:05:04 +09:00
parent 51ca9f4dce
commit 980bdfd9cb

View File

@ -80,7 +80,6 @@ class CommonController extends BaseController
} }
protected function insert_form_init() protected function insert_form_init()
{ {
$this->update_init();
$this->_viewDatas['fieldFilters'] = $this->_defines['insert']['fieldFilters']; $this->_viewDatas['fieldFilters'] = $this->_defines['insert']['fieldFilters'];
$this->_viewDatas['fieldFormOptions'] = $this->getFieldFormOptions($this->_viewDatas['fieldFilters']); $this->_viewDatas['fieldFormOptions'] = $this->getFieldFormOptions($this->_viewDatas['fieldFilters']);
$this->_viewDatas['forms'] = ['attributes' => ['method' => "post",], 'hiddens' => []]; $this->_viewDatas['forms'] = ['attributes' => ['method' => "post",], 'hiddens' => []];
@ -92,6 +91,7 @@ class CommonController extends BaseController
final public function insert_form() final public function insert_form()
{ {
try { try {
$this->insert_init();
$this->insert_form_init(); $this->insert_form_init();
$this->insert_form_process(); $this->insert_form_process();
return view($this->_viewPath . '/insert', $this->_viewDatas); return view($this->_viewPath . '/insert', $this->_viewDatas);
@ -148,7 +148,6 @@ class CommonController extends BaseController
} }
protected function update_form_init() protected function update_form_init()
{ {
$this->update_init();
$this->_viewDatas['fieldFilters'] = $this->_defines['update']['fieldFilters']; $this->_viewDatas['fieldFilters'] = $this->_defines['update']['fieldFilters'];
$this->_viewDatas['fieldFormOptions'] = $this->getFieldFormOptions($this->_viewDatas['fieldFilters']); $this->_viewDatas['fieldFormOptions'] = $this->getFieldFormOptions($this->_viewDatas['fieldFilters']);
$this->_viewDatas['forms'] = ['attributes' => ['method' => "post",], 'hiddens' => []]; $this->_viewDatas['forms'] = ['attributes' => ['method' => "post",], 'hiddens' => []];
@ -162,6 +161,7 @@ class CommonController extends BaseController
{ {
try { try {
$entity = $this->_model->getEntity($uid); $entity = $this->_model->getEntity($uid);
$this->update_init();
$this->update_form_init(); $this->update_form_init();
$this->_viewDatas['entity'] = $this->update_form_process($entity); $this->_viewDatas['entity'] = $this->update_form_process($entity);
return view($this->_viewPath . '/update', $this->_viewDatas); return view($this->_viewPath . '/update', $this->_viewDatas);