2

I added a new action to my controller, created the twig file and added the corresponding route to the routing.yml file. However I can't make it work. I keep getting:

Unable to find the controller for path /route/1/change

What am I missing?

# app/config/routing.yml

engineering_change:
    pattern: /engineering/{id}/change
    defaults: { controller: MgmtBundle:Engineering:change }

I generate the url in my template like this:

{{ path('engineering_change', { 'id': entities.id }) }}
1
  • I did all of that before I posted. I added tons of other actions on days before and I missed the _ on controller -_-" Commented Nov 27, 2013 at 22:00

1 Answer 1

4

It should read _controller instead of controller in your routing.yml.

-> Routing in Action

Sign up to request clarification or add additional context in comments.

1 Comment

oh, what an idiot i am. I can't believe I didn't see it. Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.