cfmgrv4 init...10

This commit is contained in:
최준흠 2025-03-14 16:47:38 +09:00
parent 8f6632dd4d
commit efeb2df32e
2 changed files with 14 additions and 12 deletions

View File

@ -58,20 +58,16 @@ class RecordController extends CloudflareController
}
//생성
// protected function create_process_result($message): RedirectResponse|string
// {
// $this->init(__FUNCTION__);
// helper(['form']);
// $this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
// return view(
// strtolower($this->view_path . $this->getService()->getClassPath() . "/create_result"),
// data: ['viewDatas' => $this->getViewDatas()]
// );
// }
protected function create_process_result($message): RedirectResponse|string
{
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message, DEFAULTS['STATUS']);
return redirect()->to($this->myauth->popPreviousUrl())->with('error', $message);
$this->init(__FUNCTION__);
helper(['form']);
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
return view(
strtolower($this->view_path . $this->getService()->getClassPath() . "/create_result"),
data: ['viewDatas' => $this->getViewDatas()]
);
}
protected function create_init(string $action, $fields = []): void
{

View File

@ -66,7 +66,13 @@ class ZoneController extends CloudflareController
protected function create_process_result($message): RedirectResponse|string
{
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message, DEFAULTS['STATUS']);
return redirect()->to($this->myauth->popPreviousUrl())->with('error', $message);
$this->init(__FUNCTION__);
helper(['form']);
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
return view(
strtolower($this->view_path . $this->getService()->getClassPath() . "/create_result"),
data: ['viewDatas' => $this->getViewDatas()]
);
}
protected function create_init(string $action, $fields = []): void
{