CWidget::_viewPaths purpose


I’m currently extending CWidget, can’t understand what’s the purpose of

private static $_viewPaths;

property, since I don’t see any way to modify it (or actually add paths in there).

Anybody knows how to do it?

Thank you.

You should only override getViewPath() to provide your own widget view path.

The _viewPaths variable is there to cache the default view paths which are based on the class file location.

Got it, thanks.