Reputation: 1646
I've just found this problem in other users, but the solution is not working for me, because apparently my code is right:
I have this route:
rs_shoppingcart:
pattern: /carrito
defaults: { _controller: rsBundle:Default:shoppingcart}
And this is the Controller:
public function shoppingcartAction(){ ...
...
if($peticion->getMethod() == 'POST'){
...
And basically, it's a form, first time I can go to the "carrito" route, but when I submit the form, It give me the next error:
The controller for URI "/carrito" is not callable.
What do you think?
Upvotes: 2
Views: 9054
Reputation: 3061
Make sure shoppingcart
matches the string (not ignoring case) before Action
in your Controller
method.
Upvotes: 0
Reputation: 2639
Probably the problem occurs in this line:
defaults: { _controller: rsBundle:Default:shoppingcart}
in reBundle
a namespace is missing - you should add ther the parent directory of your bundle. In example - GeneralRsBundle:Default:shoppingcart
Upvotes: 2