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

@@ -27,7 +27,7 @@ class CenterController extends Controller
$entities = $em->getRepository('ChillMainBundle:Center')->findAll();
return $this->render('ChillMainBundle:Center:index.html.twig', array(
return $this->render('@ChillMain/Center/index.html.twig', array(
'entities' => $entities,
));
}
@@ -49,7 +49,7 @@ class CenterController extends Controller
return $this->redirect($this->generateUrl('admin_center_show', array('id' => $center->getId())));
}
return $this->render('ChillMainBundle:Center:new.html.twig', array(
return $this->render('@ChillMain/Center/new.html.twig', array(
'entity' => $center,
'form' => $form->createView(),
));
@@ -83,7 +83,7 @@ class CenterController extends Controller
$center = new Center();
$form = $this->createCreateForm($center);
return $this->render('ChillMainBundle:Center:new.html.twig', array(
return $this->render('@ChillMain/Center/new.html.twig', array(
'entity' => $center,
'form' => $form->createView(),
));
@@ -103,7 +103,7 @@ class CenterController extends Controller
throw $this->createNotFoundException('Unable to find Center entity.');
}
return $this->render('ChillMainBundle:Center:show.html.twig', array(
return $this->render('@ChillMain/Center/show.html.twig', array(
'entity' => $center
));
}
@@ -123,7 +123,7 @@ class CenterController extends Controller
}
$editForm = $this->createEditForm($center);
return $this->render('ChillMainBundle:Center:edit.html.twig', array(
return $this->render('@ChillMain/Center/edit.html.twig', array(
'entity' => $center,
'edit_form' => $editForm->createView()
));
@@ -170,7 +170,7 @@ class CenterController extends Controller
return $this->redirect($this->generateUrl('admin_center_edit', array('id' => $id)));
}
return $this->render('ChillMainBundle:Center:edit.html.twig', array(
return $this->render('@ChillMain/Center/edit.html.twig', array(
'entity' => $center,
'edit_form' => $editForm->createView()
));