You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was squashed before being merged into the 1.0-dev branch (closes#286).
Discussion
----------
Fix crud controller template
There is a mistake in crud controller template :
Example (`src/Resources/skeleton/crud/controller/Controller.tpl.php` - line 35) :
`return $this->render('<?= $route_name ?>/index.html.twig', ['<?= $entity_twig_var_plural ?>' => $<?= $entity_var_plural ?>]);`
With an entity with following path :` Entity/Foo/BarBar.php` , `$route_name` will be equal to `foo_bar_bar` and does not correspond with the `index.html.twig` path (should be `foo/bar_bar`).
This pull request fix this by adding the `$templatesPath` var, used to create twig templates, for the controller generation.
:)
Commits
-------
f77a843 Rename template_var with templates_path (plural)
86d24f3 Create new template_path var and replace route_name var in render method parameter in controller template
0 commit comments