KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm working on Symfony 2.3 and I declared a new route and new controller , but when I call this controller from the browser I get this error: The controller for URI "/user/1" is not callable. in /dev.mydomain.org/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php at line 82 This is my simple route configuration: user_homepage: pattern: /user defaults: { _controller: UserBundle:Default:index } user_show: pattern: /user/{id} defaults: { _controller: UserBundle:Default:show } requirements: id: \d+ And this is my very simple controller : public function showUserAction($id) { return $this->render('UserBundle:Default:show.html.twig', array()); } What is wrong?
Tags (comma-separated)
Save Edits
Cancel