I want to Yii View, Replacing some database values in view.
for example in database table i have 1 field of status and its value is '0' or '1' but in View I want to display as '0'=>'In Active' or '1'=>'Active'.
I am using this code in action view:
array( 'name'=>'isrecurring', 'value'=>'($data->isrecurring == \'1\') ? "Active " : "In Active"', 'type'=>'raw', ),
but it's not working.
In action admin its work fine and show Active or In Active.