I was wondering what's the best way to have a nested URL structure in Yii I have a website with a structure like the following
/index
/dashboard (dashboard controller, index action)
/dashboard/profile (profile controller, index action)
/dashboard/profile/view (profile controller, view action)
/dashboard/profile/update (profile controller, update action)
/dashboard/stats (stats controller, index action)
and so on...
Basically /dashboard has it's own controller and by default will use the Index action however I would like to nest other controllers under /dashboard, e.g. /dashboard/profile however, the /profile controller is not an action, it should be a controller which in turn can have it's own actions. e.g. /dashboard/profile/view
is this doable? if yes, what would be the best way to achieve such a structure?