modules init/deactivate, modules migrations

This commit is contained in:
2024-09-23 12:50:50 +03:00
parent f20ba63277
commit 9e2f7cd9e3
20 changed files with 304 additions and 32 deletions

View File

@ -52,8 +52,17 @@ class ModuleController extends AdminController
{
$request = new Request();
$this->moduleService->setActiveModule($request->get("slug"));
$mod_info = $this->moduleService->getModuleInfoBySlug($request->get('slug'));
$this->cgView->render("view.php", ['data' => $this->moduleService->getModuleInfo($this->moduleService->getModuleDir($request->get("slug")))]);
$this->cgView->render("view.php", ['data' => $mod_info]);
}
public function actionView(): void
{
$request = new Request();
$mod_info = $this->moduleService->getModuleInfoBySlug($request->get('slug'));
$this->cgView->render("view.php", ['data' => $mod_info]);
}
}