Reputation: 362
I created a new project with symfony new myproject 3.4
and in the fresh project, I simple copy-paste the indexAction in the default controller, rename the action and the route, and voila, the server returned a 404 not found error. I did nothing more.
Of course I also have the type: annotation
in my routing.yml file.
What could be the problem? Any idea? Thx!
Upvotes: 0
Views: 312
Reputation: 382
This might be a caching issue, you can clear the cache by issuing the command bin/console cache:clear
from your command prompt.
Upvotes: 1