this is my first attempt to create something with Symfony2.
I have my database, and I wanted to generate models from it automatically. So I run
php app/console doctrine:mapping:import MYBundle php
and
php app/console doctrine:generate:entities MYBundle
Ok, my entities are now created.
Then I wanted to create basic crud operations, so i run
php app/console generate:doctrine:crud
Which is supposed to create Controllers,Views and Routing table for the selected models.
The problem is that the routing table isn't generated, so if i navigate to, let's say, /posts, and my index.html.twig contains
path('users_show', { 'id': entity.id }) }}
My server send a 500 Error.
Symfony doesn't even catch that error and show me the nice formatted exception.
Furthermore if i modify my index.html.twig, it will remain cached until i don't rm -R the /app/cache/dev folder.
Is there a way to disable caching?
[EDIT]
my routing_dev.yml
_welcome:
pattern: /
defaults: { _controller: OREBundle:Default:index }
_assetic:
resource: .
type: assetic
_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
prefix: /_wdt
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler
_configurator:
resource: "@SensioDistributionBundle/Resources/config/routing/webconfigurator.xml"
prefix: /_configurator
_main:
resource: routing.yml
and my routing.yml
_welcome:
pattern: /
defaults: { _controller: OREBundle:Default:index }
_users:
pattern: /users
defaults: { _controller: OREBundle:Users:index}
/app_dev.php? also, post the contents of yourrouting.ymlandrouting_dev.yml- JamesHalsallpath('users', { 'id': entity.id, 'action': 'show' }) }}- JamesHalsall