mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
sf4, repair errors and make basic and admin chill pages works
This commit is contained in:
@@ -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()
|
||||
));
|
||||
|
Reference in New Issue
Block a user