The controller for URI is not callable in symfony

→ Are you a new visitor? Please visit the page guidance for new visitors ←

The controller for URI is not callable in symfony

This is a very common error for symfony starters, and it happened to me also when I first tried the framework, so you have to follow two steps in order to debug this:

First check

First step is to make sure that your controller is actually a public function rather than protected, because this is very important.

Second check

You defined in the routing.yml file of your bundle the controller’s function name like this:

The logical name UserBundle:Default:save refers to UserBunde\Controller\DefaultController::saveAction, so the function should be called

Heads up! Do not forget about the capital “A” from within the function name.

Request an article ←