@@ -23,7 +23,7 @@ class <?= $class_name ?> extends <?= $parent_class_name; ?><?= "\n" ?>
23
23
<?php if (isset ($ repository_full_class_name )): ?>
24
24
public function index(<?= $ repository_class_name ?> $<?= $ repository_var ?> ): Response
25
25
{
26
- return $this->render('<?= $ template_path ?> /index.html.twig', ['<?= $ entity_twig_var_plural ?> ' => $<?= $ repository_var ?> ->findAll()]);
26
+ return $this->render('<?= $ templates_path ?> /index.html.twig', ['<?= $ entity_twig_var_plural ?> ' => $<?= $ repository_var ?> ->findAll()]);
27
27
}
28
28
<?php else : ?>
29
29
public function index(): Response
@@ -32,7 +32,7 @@ public function index(): Response
32
32
->getRepository(<?= $ entity_class_name ?> ::class)
33
33
->findAll();
34
34
35
- return $this->render('<?= $ template_path ?> /index.html.twig', ['<?= $ entity_twig_var_plural ?> ' => $<?= $ entity_var_plural ?> ]);
35
+ return $this->render('<?= $ templates_path ?> /index.html.twig', ['<?= $ entity_twig_var_plural ?> ' => $<?= $ entity_var_plural ?> ]);
36
36
}
37
37
<?php endif ?>
38
38
@@ -53,7 +53,7 @@ public function new(Request $request): Response
53
53
return $this->redirectToRoute('<?= $ route_name ?> _index');
54
54
}
55
55
56
- return $this->render('<?= $ template_path ?> /new.html.twig', [
56
+ return $this->render('<?= $ templates_path ?> /new.html.twig', [
57
57
'<?= $ entity_twig_var_singular ?> ' => $<?= $ entity_var_singular ?> ,
58
58
'form' => $form->createView(),
59
59
]);
@@ -64,7 +64,7 @@ public function new(Request $request): Response
64
64
*/
65
65
public function show(<?= $ entity_class_name ?> $<?= $ entity_var_singular ?> ): Response
66
66
{
67
- return $this->render('<?= $ template_path ?> /show.html.twig', ['<?= $ entity_twig_var_singular ?> ' => $<?= $ entity_var_singular ?> ]);
67
+ return $this->render('<?= $ templates_path ?> /show.html.twig', ['<?= $ entity_twig_var_singular ?> ' => $<?= $ entity_var_singular ?> ]);
68
68
}
69
69
70
70
/**
@@ -81,7 +81,7 @@ public function edit(Request $request, <?= $entity_class_name ?> $<?= $entity_va
81
81
return $this->redirectToRoute('<?= $ route_name ?> _edit', ['<?= $ entity_identifier ?> ' => $<?= $ entity_var_singular ?> ->get<?= ucfirst ($ entity_identifier ) ?> ()]);
82
82
}
83
83
84
- return $this->render('<?= $ template_path ?> /edit.html.twig', [
84
+ return $this->render('<?= $ templates_path ?> /edit.html.twig', [
85
85
'<?= $ entity_twig_var_singular ?> ' => $<?= $ entity_var_singular ?> ,
86
86
'form' => $form->createView(),
87
87
]);
0 commit comments