Point pagination to different controller

I’m making a forum with Yii and I wanted to display all topics in a forum with pagination, under the topic name, so the user can go directly to the page he’d love to go to.

The page listing the topics should look like

[i]Topic One [ go to page: 1 2 3 4 ]

Topic Two [ go to page: 1 2 3 ]

Topic Two [ go to page: 1 2 … 9 10 ][/i]

my main problem is that I could not find a way to point the CLinkPager to another controller/action than the current one. Is there a way to do it with a parameter, when running widget?

any ideas on that thing?

You can set the route property of the CPagination: controllerId/actionId