basic functionality template for yii application