Minggu, 01 Oktober 2017

Encode

$this->widget('zii.widgets.grid.CGridView', array(
 'dataProvider' => $model->search(),
 'filter' => $model,
 'columns' => array(
  array(
   'name' => 'username',
   'type' => 'raw',
   'value' => 'CHtml::encode($data->username)'
  ),
  array(
   'name' => 'email',
   'type' => 'raw',
   'value' => 'CHtml::link(CHtml::encode($data->email), "mailto:".CHtml::encode($data->email))',
  ),
 ),
));

0 komentar:

Posting Komentar