cfmgrv4 init...10
This commit is contained in:
parent
a1cf9ec11f
commit
33948d56c1
@ -116,16 +116,20 @@ abstract class CommonController extends BaseController
|
||||
$this->create_init('create');
|
||||
return $this->create_form_procedure();
|
||||
}
|
||||
protected function create_form_process_result(): string
|
||||
{
|
||||
return view(
|
||||
$this->view_path . "create",
|
||||
data: ['viewDatas' => $this->getViewDatas()]
|
||||
);
|
||||
}
|
||||
final protected function create_form_procedure(): RedirectResponse|string
|
||||
{
|
||||
try {
|
||||
helper(['form']);
|
||||
$this->create_form_process();
|
||||
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
||||
return view(
|
||||
$this->view_path . "create",
|
||||
data: ['viewDatas' => $this->getViewDatas()]
|
||||
);
|
||||
return $this->create_form_process_result();
|
||||
} catch (\Exception $e) {
|
||||
return redirect()->back()->with('error', $e->getMessage());
|
||||
}
|
||||
@ -194,16 +198,20 @@ abstract class CommonController extends BaseController
|
||||
throw new \Exception("해당 정보를 찾을수 없습니다.");
|
||||
}
|
||||
}
|
||||
protected function modify_form_process_result(): string
|
||||
{
|
||||
return view(
|
||||
$this->view_path . "modify",
|
||||
data: ['viewDatas' => $this->getViewDatas()]
|
||||
);
|
||||
}
|
||||
final protected function modify_form_procedure(mixed $uid): RedirectResponse|string
|
||||
{
|
||||
try {
|
||||
helper(['form']);
|
||||
$this->modify_form_process($uid);
|
||||
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
||||
return view(
|
||||
$this->view_path . "modify",
|
||||
data: ['viewDatas' => $this->getViewDatas()]
|
||||
);
|
||||
return $this->modify_form_process_result();
|
||||
} catch (\Exception $e) {
|
||||
return redirect()->back()->with('error', $e->getMessage());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user