How to assign new values to saved data in yii 1?
<p>I have following code in my controller:</p>

<pre><code>public function actionAdmin()
{
    $model=new MForm('search');
    $model-&gt;unsetAttributes();  // clear any default values
    if(isset($_GET['ChManageForm']))
        $model-&gt;attributes=$_GET['ChManageForm'];

    $this-&gt;render('admin',array(
        'model'=&gt;$model,
    ));
}
</code></pre>

<p>and </p>

<pre><code>const member=1;
const  district=2;
</code></pre>

<p>My view(called admin)</p>

<pre><code>&lt;?php $this-&gt;widget('zii.widgets.grid.CGridView', array(
    'id'=&gt;'ch-manage-form-grid',
    'dataProvider'=&gt;$model-&gt;search(),
    'filter'=&gt;$model,
    'columns'=&gt;array(
        'id',
        'form_name',
        'region',
        'phone_number',
        'email',
        array(
            'class'=&gt;'CButtonColumn',
        ),
    ),
)); ?&gt;
</code></pre>

<p>1 and 2 appears in the column called name(in my view file) and values of this column are saved in integer format. I need to show(in my view(admin)) member and district instead of numbers(e.g member instead of 1). How can I do it?</p>