sf4, repair errors and make basic and admin chill pages works

This commit is contained in:
2020-07-30 17:34:45 +02:00
parent 7d9de642ff
commit 91edb14fb2
17 changed files with 126 additions and 77 deletions

View File

@@ -34,7 +34,7 @@ class UserController extends Controller
. 'ORDER BY u.username')
->getResult();
return $this->render('ChillMainBundle:User:index.html.twig', array(
return $this->render('@ChillMain/User/index.html.twig', array(
'entities' => $entities,
));
}
@@ -60,7 +60,7 @@ class UserController extends Controller
return $this->redirect($this->generateUrl('admin_user_show', array('id' => $user->getId())));
}
return $this->render('ChillMainBundle:User:new.html.twig', array(
return $this->render('@ChillMain/User/new.html.twig', array(
'entity' => $user,
'form' => $form->createView(),
));
@@ -95,7 +95,7 @@ class UserController extends Controller
$user = new User();
$form = $this->createCreateForm($user);
return $this->render('ChillMainBundle:User:new.html.twig', array(
return $this->render('@ChillMain/User/new.html.twig', array(
'entity' => $user,
'form' => $form->createView(),
));
@@ -115,7 +115,7 @@ class UserController extends Controller
throw $this->createNotFoundException('Unable to find User entity.');
}
return $this->render('ChillMainBundle:User:show.html.twig', array(
return $this->render('@ChillMain/User/show.html.twig', array(
'entity' => $user,
));
}
@@ -136,7 +136,7 @@ class UserController extends Controller
$editForm = $this->createEditForm($user);
return $this->render('ChillMainBundle:User:edit.html.twig', array(
return $this->render('@ChillMain/User/edit.html.twig', array(
'entity' => $user,
'edit_form' => $editForm->createView(),
'add_groupcenter_form' => $this->createAddLinkGroupCenterForm($user)->createView(),
@@ -165,7 +165,7 @@ class UserController extends Controller
$editForm = $this->createEditPasswordForm($user);
return $this->render('ChillMainBundle:User:edit_password.html.twig', array(
return $this->render('@ChillMain/User/edit_password.html.twig', array(
'entity' => $user,
'edit_form' => $editForm->createView()
));
@@ -256,7 +256,7 @@ class UserController extends Controller
}
}
return $this->render('ChillMainBundle:User:edit.html.twig', array(
return $this->render('@ChillMain/User/edit.html.twig', array(
'entity' => $user,
'edit_form' => $this->createEditForm($user)->createView(),
'add_groupcenter_form' => $this->createAddLinkGroupCenterForm($user)->createView(),
@@ -329,7 +329,7 @@ class UserController extends Controller
return $this->redirect($this->generateUrl('admin_user_edit', array('id' => $id)));
}
return $this->render('ChillMainBundle:User:edit.html.twig', array(
return $this->render('@ChillMain/User/edit.html.twig', array(
'entity' => $user,
'edit_form' => $editForm->createView(),
'add_groupcenter_form' => $this->createAddLinkGroupCenterForm($user)->createView(),
@@ -378,7 +378,7 @@ class UserController extends Controller
return $this->redirect($this->generateUrl('admin_user_edit', array('id' => $id)));
}
return $this->render('ChillMainBundle:User:edit_password.html.twig', array(
return $this->render('@ChillMain/User/edit_password.html.twig', array(
'entity' => $user,
'edit_form' => $editForm->createView(),
));