site controller question


I want to build a website with following layout

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

I already developed my site 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.