added support for php namespaces, static calls and yii widgets