Hierarchically structured website using YII


I am building a (YII based) website having categories and subcategories and I want to use hierarchical URL structure for my site like


How can I implement above URL structure while using YII? Any help will be highly appreciated.


NOTE: you posted the same question on 3 different section of this forum, please do not do that again.