I have a column in database table where column type is enum - enum(‘Y’, ‘N’). I print out table row’s using zii.widgets.CDetailView. This prints out Y or N depends on column value, but i want Yii converts Y to Yes and N to No.
but let me ask, if you have to calculate the value, for example, suppose there is several values, not just two: yes and no, let me explain better, the value can be five letters. Another example, suppose you have to calculte the cost, which is an ecuation cost = price * quantity, and price and quantity are model’s attributes. Can you built a function, like cGridView ?