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 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()
));