My User class is derived from CActiveRecord. It has a field email mapped to a database and there is an extension which needs the variable to be named mailaddress.
How can I add a member variable named mailaddress under User class, so that it returns the value stored in email?
Add a read-only component property to your
Userclass: