title: Set the display name of attribute instead of number
body: <p>I have the User model. It has the field "role" , which contains numbers 1,2,3. 1 - admin, 2 - moderator, 3 - simple user. I've created CRUD controller to manage users. And when I open view.php I want to see "admin" instead of "1" and etc.</p>
  
  <p>When I operate with 2 states I use as bellow. But what about more then? </p>
  
  <pre><code>&lt;?php $this-&gt;widget('zii.widgets.CDetailView', array(
  'data'=&gt;$model,
  'attributes'=&gt;array(
      'status' =&gt; array(
      'name' =&gt; 'status',
      'value' =&gt; ($data-&gt;status==0)?"Good":"Bad",
      ),
  ),
  )): ?&gt;
  </code></pre>