GridView/DetailView reformatting columns

Hi All

I’m new to Yii and web development/php, so its tough going at the moment.

I have a number of tables which have fields stored in radians, I would like to show these fields in degrees for CRUD operations.

I use ActiveRecord::beforeSave to convert to radians when updating/creating. How do I format/convert database radians to display degrees ?

Whats the best way to achieve this ?

Come on, this should be easy


If you are already utilising "beforeSave", why not ask "afterFind" to join the party?

Haha, how did i miss that, thanks