Code snippets for developing with Yii framework