title: Using Yii framework, what would be a right way to process an attribute before displaying it using CHtml::activeTextField()
body: <p>Say I have this line of code in the view.</p>
  
  <pre><code>&lt;?php echo CHtml::activeTextField($model,'start_time'); ?&gt;
  </code></pre>
  
  <p>start_time is a UNIX timestamp. When just displaying it in a view I can apply functions like date() on it. Where should I apply the formatting when I'm displaying it in a form, by using the above line of code? (This case of timestamps/dates might be special, but I'm also interested in how would one go about if it wasn't a date and I just want to work with </p>
  
  <blockquote>
    <p>"value in database" &lt;> "different representations of the value in different views.</p>
  </blockquote>
  
  <p>Thanks =)</p>