G
G
gachkydxvbgd2017-04-25 06:52:53
symfony
gachkydxvbgd, 2017-04-25 06:52:53

How to optimize symfony routing?

admin_goods_index:
    path:     /goods/
    defaults: { _controller: AdminBundle:Goods:index }
admin_goods_create:
    path:     /goods/create/
    defaults: { _controller: AdminBundle:Goods:create }
admin_goods_edit:
    path:     /goods/edit/{slug}/
    defaults: { _controller: AdminBundle:Goods:edit }
admin_goods_del:
    path:     /goods/del/{slug}/
    defaults: { _controller: AdminBundle:Goods:del }

admin_categories_index:
    path:     /categories/
    defaults: { _controller: AdminBundle:Categories:index }
admin_categories_create:
    path:     /categories/create/
    defaults: { _controller: AdminBundle:Categories:create }
admin_categories_edit:
    path:     /categories/edit/{slug}/
    defaults: { _controller: AdminBundle:Categories:edit }
admin_categories_del:
    path:     /categories/del/{slug}/
    defaults: { _controller: AdminBundle:Categories:del }

admin_pages_index:
    path:     /pages/
    defaults: { _controller: AdminBundle:Pages:index }
admin_pages_create:
    path:     /pages/create/
    defaults: { _controller: AdminBundle:Pages:create }
admin_pages_edit:
    path:     /pages/edit/{slug}/
    defaults: { _controller: AdminBundle:Pages:edit }
admin_pages_del:
    path:     /pages/del/{slug}/
    defaults: { _controller: AdminBundle:Pages:del }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
1alexandr, 2017-04-25
@1alexandr

What's wrong with him?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question