cfmgrv4 init...4
This commit is contained in:
parent
3165bdf41c
commit
2b05c05703
@ -50,6 +50,13 @@ class AuditLogController extends CloudflareController
|
|||||||
return $this->view_procedure($uid);
|
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
|
public function index(): string
|
||||||
{
|
{
|
||||||
$this->init(__FUNCTION__);
|
$this->init(__FUNCTION__);
|
||||||
|
|||||||
@ -393,6 +393,13 @@ abstract class MVController extends CommonController
|
|||||||
log_message("debug", $this->getModel()->getLastQuery());
|
log_message("debug", $this->getModel()->getLastQuery());
|
||||||
return $entitys;
|
return $entitys;
|
||||||
}
|
}
|
||||||
|
protected function list_process_result(): string
|
||||||
|
{
|
||||||
|
return view(
|
||||||
|
$this->view_path . "index",
|
||||||
|
['viewDatas' => $this->getViewDatas()]
|
||||||
|
);
|
||||||
|
}
|
||||||
final protected function list_procedure(): string
|
final protected function list_procedure(): string
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
@ -407,10 +414,7 @@ abstract class MVController extends CommonController
|
|||||||
$this->entitys = $this->list_entitys_process();
|
$this->entitys = $this->list_entitys_process();
|
||||||
// 현재 URL을 스택에 저장
|
// 현재 URL을 스택에 저장
|
||||||
$this->myauth->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : ""));
|
$this->myauth->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : ""));
|
||||||
return view(
|
return $this->list_process_result();
|
||||||
$this->view_path . "index",
|
|
||||||
['viewDatas' => $this->getViewDatas()]
|
|
||||||
);
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
log_message("error", $e->getMessage());
|
log_message("error", $e->getMessage());
|
||||||
return $this->helper->alert($e->getMessage());
|
return $this->helper->alert($e->getMessage());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user