-
-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Description
When you have controller named with two or more words (e.g. StaticPageController) and use @template annotation it generated folder StaticPage in views, but Symfony expects static_page.
Steps to reproduce
- Create this controller
class StaticPageController extends Controller
{
/**
* @Route("/about-us", name="about-us")
* @Template
*/
public function aboutUsAction()
{
}
}
- Use function "Twig: Create Template" (It creates Resources/views/StaticPage/AboutUs.html.twig)
- Run server
- Go to address /about-us
What is the result
Error message "Unable to find template "AppBundle/static_page/about_us.html.twig""
What should be the result
Plugin should generate folders and files with snake_case, not with camelCase (it is also written here in best practices)
ilario-pierbattista, SandroBuerki, mablae, cadavre, marbel82 and 2 more
Metadata
Metadata
Assignees
Labels
No labels