How to move the view files in the components dictionary?

In the official ‘blog’ demo, there are sevral ‘Portlet’ and they has the view files in the component/view dictionary. I want to move these view files to the webroot themes dictionary, I tried many ways, but failed. Does anyone have any suggestion? Thank you!

What you need is just recently released: http://www.yiiframework.com/extension/prettywidget/

good work. I konw you override the getViewFile function of CWidget, but how to use your extention? I am newbie of yii~ :)

You have to set up your widgets so that they extend PrettyWidget. Please notice that I’m not the author of this extension.

Ok, got it. Thanks for your help! :)