Fix #1837: integrating Yii with different Software and libs

Fixes #1837: integrating Yii with different Software and libs

Integration with Yii1 included