AttachBehavior for Yii 1.*