site controller question

Hello,

I want to build a website with following layout

www.sitename.com/category1/

www.sitename.com/category2/

www.sitename.com/category3/

All the categories have same layout but different content basing on category.

I already developed my site www.sitename.com/ which supports only one category.

My database model supports multiple categories but don’t know how to implement it using yii.

Basically i want to re use the same code for all categories, when user selects a category i want to load the content from db basing on selected category.

Any suggestions?

Thanks a lot.

Perhaps a module named Category? Then each category can be an action, or have a signle default action which parses the route for the correct view?

Interesting point, I will try to do that.

Thanks you.