php - Symfony 2 routing 2 similar routes but another controllers -
i have problem routing. created route pages that
@route("/{slug}", name="cms_site")
i have route admin dashboard
@route("/dashboard", name="dashboard_homepage") now when try open /dashboard cant because symfony use "cms_site" controller.
how can define "dashboard_homepage" /dashboard important cms_site ?
the routes in symfony2 looked in descending order. so, first route matching pattern selected.
the placeholder routes /{slug} must @ end of routing definition. if change order of actions or order how import routing in routing.yml, should work.
i hope helps.
Comments
Post a Comment