Yii1 compatibility

removed YII_PATH constant from the framework to be compatible with Yii 1.1 and more flexible in general.

fixes #4501
Imo getting rid of this constant is the best option that is why I removed it from the framework. Yii completely relies on the alias now which can be adjusted if needed while the constant can not.