Ivan1986SubrouteBundle
Extension for multiple rourets, (*1)
install default by composer:, (*2)
"ivan1986/subroute": "*",
Initialize the bundle:, (*3)
new Ivan1986\SubrouteBundle\SubrouteBundle(),
What It Do
Allows many routing files called for controllers
For example, we have::, (*4)
/{user}/albums/{album}/list
/{user}/albums/{album}/add
/{user}/albums/{album}/delete/{id}
/{user}/albums/{album}/edit/{id}
/{user}/albums/{album}/show/{id}
A problem::, (*5)
/{user}/albums/{album}/
one for all this urls, and logic one for all urls., (*6)
Solution::, (*7)
Routing(/{user}/albums/{album}/{slug})
run Controller
continue Routing slug whis $this->get('subrouter')->route('album', 'slug');
run other Controller