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 ScopeController extends Controller
|
||||
|
||||
$entities = $em->getRepository('ChillMainBundle:Scope')->findAll();
|
||||
|
||||
return $this->render('ChillMainBundle:Scope:index.html.twig', array(
|
||||
return $this->render('@ChillMain/Scope/index.html.twig', array(
|
||||
'entities' => $entities,
|
||||
));
|
||||
}
|
||||
@@ -49,7 +49,7 @@ class ScopeController extends Controller
|
||||
return $this->redirect($this->generateUrl('admin_scope_show', array('id' => $scope->getId())));
|
||||
}
|
||||
|
||||
return $this->render('ChillMainBundle:Scope:new.html.twig', array(
|
||||
return $this->render('@ChillMain/Scope/new.html.twig', array(
|
||||
'entity' => $scope,
|
||||
'form' => $form->createView(),
|
||||
));
|
||||
@@ -83,7 +83,7 @@ class ScopeController extends Controller
|
||||
$scope = new Scope();
|
||||
$form = $this->createCreateForm($scope);
|
||||
|
||||
return $this->render('ChillMainBundle:Scope:new.html.twig', array(
|
||||
return $this->render('@ChillMain/Scope/new.html.twig', array(
|
||||
'entity' => $scope,
|
||||
'form' => $form->createView(),
|
||||
));
|
||||
@@ -103,7 +103,7 @@ class ScopeController extends Controller
|
||||
throw $this->createNotFoundException('Unable to find Scope entity.');
|
||||
}
|
||||
|
||||
return $this->render('ChillMainBundle:Scope:show.html.twig', array(
|
||||
return $this->render('@ChillMain/Scope/show.html.twig', array(
|
||||
'entity' => $scope
|
||||
));
|
||||
}
|
||||
@@ -124,7 +124,7 @@ class ScopeController extends Controller
|
||||
|
||||
$editForm = $this->createEditForm($scope);
|
||||
|
||||
return $this->render('ChillMainBundle:Scope:edit.html.twig', array(
|
||||
return $this->render('@ChillMain/Scope/edit.html.twig', array(
|
||||
'entity' => $scope,
|
||||
'edit_form' => $editForm->createView(),
|
||||
));
|
||||
@@ -171,7 +171,7 @@ class ScopeController extends Controller
|
||||
return $this->redirect($this->generateUrl('admin_scope_edit', array('id' => $id)));
|
||||
}
|
||||
|
||||
return $this->render('ChillMainBundle:Scope:edit.html.twig', array(
|
||||
return $this->render('@ChillMain/Scope/edit.html.twig', array(
|
||||
'entity' => $scope,
|
||||
'edit_form' => $editForm->createView()
|
||||
));
|
||||
|
Reference in New Issue
Block a user