Symfony: multiple controllers in one bundle

August 30, 2013 at 08:10

I have a bundle named ItemBundle and since an item has categories, I wanted a second controller called CategoryController within that bundle. To make symfony realize that this new controller exists, it seems to be necessary to mention it in the routing.yml ... _backend_item_category: resource: "@PATHItemBundle/Controller/CategoryController.php" type: annotation prefix: /item/category

Tags: controller mutiple routing symfony

Hinterlasse einen Kommentar: