草庐IT

php - URI "/agregarPedido/1"的 Controller 不可调用

我是symfony的新手,想寻求帮助,我来自阿根廷,请原谅我糟糕的英语。设置为routing.yml:Agregar_pedido:pattern:/agregarPedido/{id}defaults:{_controller:AtajoBundle:Tablas:agregarPedido}这是我的TablasController.php:publicfunctionagregarPedido($id){$em=$this->getDoctrine()->getManager();$usuario=$em->getRepository('AtajoBundle:User')->fi