I have this CGridview and when i insert the buttons column i get a parser error inside the column:
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'encomenda-linha',
'dataProvider' => $encomendaLinhasProvider,
'htmlOptions' => array('style' => 'padding:0'),
'columns' => array('ritmo.artist',
'ritmo.title',
array(
'header' => Yii::t('app', 'Price'),
'name' => 'ritmo.price',
'htmlOptions' => array('style' => 'width:10px;'),
'value' => '$data->ritmo->price." €"'
),
array(
'class' => 'CButtonColumn',
'template' => '{delete}',
'buttons' => array(
'delete' => array(
'url' => Yii::app()->createUrl('enclinha',array('id'=>'2')),
'imageUrl' => Yii::app()->request->baseUrl . '/images/cross.png',
)),
)
)
));
Parse error: syntax error, unexpected ‘/’ in D:\xampp\htdocs\StyleStore\framework\base\CComponent.php(607) : eval()'d code on line 1