cfmgrv4 init...4

This commit is contained in:
최준흠 2024-10-28 12:19:13 +09:00
parent 3165bdf41c
commit 2b05c05703
2 changed files with 15 additions and 4 deletions

View File

@ -50,6 +50,13 @@ class AuditLogController extends CloudflareController
return $this->view_procedure($uid);
}
// 리스트
protected function list_process_result(): string
{
return view(
$this->view_path . strtolower($this->getService()->class_path) . "/index",
['viewDatas' => $this->getViewDatas()]
);
}
public function index(): string
{
$this->init(__FUNCTION__);

View File

@ -393,6 +393,13 @@ abstract class MVController extends CommonController
log_message("debug", $this->getModel()->getLastQuery());
return $entitys;
}
protected function list_process_result(): string
{
return view(
$this->view_path . "index",
['viewDatas' => $this->getViewDatas()]
);
}
final protected function list_procedure(): string
{
try {
@ -407,10 +414,7 @@ abstract class MVController extends CommonController
$this->entitys = $this->list_entitys_process();
// 현재 URL을 스택에 저장
$this->myauth->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : ""));
return view(
$this->view_path . "index",
['viewDatas' => $this->getViewDatas()]
);
return $this->list_process_result();
} catch (\Exception $e) {
log_message("error", $e->getMessage());
return $this->helper->alert($e->getMessage());