How can I connect the results of a button with a textarea to display them??
This is my code
<?php $this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
'columns'=>array(
'ACCESSO_ID',
/*array( // display 'author.username' using an expression
'name'=>'ACCESSO_ID',
'value'=>'$data->ACCESSO_ID',
), */
'USER_NAME',
'PASSWORD',
//'ANAGRA_ANAGRA_ID',
array(
'name'=>'ANAGRA_ANAGRA_ID',
'value'=>'anagrafe::model()->FindByPk($data->ANAGRA_ANAGRA_ID)->NOME',
),
array(
'name'=>'Cognome',
'value'=>'anagrafe::model()->FindByPk($data->ANAGRA_ANAGRA_ID)->COGNOME',
),
//'SSO_USER',
//'APPROVATO',
array(
'class'=>'CButtonColumn',
'template'=>'{ruolo}',
'buttons'=>array(
'ruolo'=>array(
'label'=>'Assegna Ruolo ',
'url'=>'Yii::app()->createUrl("/ruoli/create", array("id" => $data->ACCESSO_ID))',
),
),
),
),
)); ?>
When i click a button ‘Assegna Ruolo’ i redirect to another page in which i visualize the role of single person…
how can i visualize thiese result in a control??
Textarea or another???