init fix
This commit is contained in:
parent
8a9f156235
commit
6d9d19ce36
@ -171,7 +171,7 @@ class EntityRelation
|
|||||||
{
|
{
|
||||||
$moduleClass = $this->getAdditionalPropertyClassBySlug($slug);
|
$moduleClass = $this->getAdditionalPropertyClassBySlug($slug);
|
||||||
if ($moduleClass and method_exists($moduleClass, "saveInputs")) {
|
if ($moduleClass and method_exists($moduleClass, "saveInputs")) {
|
||||||
$moduleClass->saveInputs($entity, $model, $request, );
|
$moduleClass->saveInputs($entity, $model, $request);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,20 +110,8 @@ class AdminConsoleController extends ConsoleController
|
|||||||
|
|
||||||
$this->menuService->createItem([
|
$this->menuService->createItem([
|
||||||
"label" => "Посты",
|
"label" => "Посты",
|
||||||
"url" => "#",
|
|
||||||
"slug" => "post",
|
|
||||||
]);
|
|
||||||
$this->menuService->createItem([
|
|
||||||
"label" => "Список",
|
|
||||||
"url" => "/admin/post",
|
"url" => "/admin/post",
|
||||||
"slug" => "post_list",
|
"slug" => "post",
|
||||||
"parent_slug" => "post",
|
|
||||||
]);
|
|
||||||
$this->menuService->createItem([
|
|
||||||
"label" => "Создать",
|
|
||||||
"url" => "/admin/post/create",
|
|
||||||
"slug" => "post_create",
|
|
||||||
"parent_slug" => "post",
|
|
||||||
]);
|
]);
|
||||||
$this->out->r("create item menu post", "green");
|
$this->out->r("create item menu post", "green");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user