dbmsv2_init...1
This commit is contained in:
parent
230a1a1353
commit
9fdc61332a
@ -118,4 +118,28 @@ class SearchController extends AdminController
|
||||
$this->childServers = $childServers;
|
||||
return $entities;
|
||||
}
|
||||
public function index(): RedirectResponse|string
|
||||
{
|
||||
try {
|
||||
$this->getService()->setAction(__FUNCTION__);
|
||||
$this->getService()->setFormFields();
|
||||
//전달값정의
|
||||
$this->getService()->setFormDatas($this->request->getGet());
|
||||
$this->getService()->setFormFilters();
|
||||
$this->getService()->setFormRules();
|
||||
$this->getService()->setFormOptions();
|
||||
helper(['form']);
|
||||
//Return Url정의
|
||||
$this->getService()->getMyAuth()->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : ""));
|
||||
$entities = $this->index_process();
|
||||
$this->total_count = count($entities);
|
||||
$this->page_options = [];
|
||||
$this->entities = $entities;
|
||||
$this->per_page = 200;
|
||||
$this->page = 1;
|
||||
return $this->getResultSuccess();
|
||||
} catch (\Exception $e) {
|
||||
return $this->getResultFail($e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user