Hi all,
what’s the best practice to modify the output html of a widget?
i explain: i have a simply table created by a CGridView widget, and i saw yet how to modify some css attributes such as: class, row class…etc etc…but for example:
how can i "move" the pager from the bottom to the top of the table? [see the attachment]
the movement tha i need to do:
2841
this is my actual code of the widget:
$this->widget('zii.widgets.grid.CGridView',
array(
'dataProvider'=>$model->search(),
'rowCssClass'=>array('zebra_1','zebra_2'),
'pagerCssClass'=>'paginatore',
'columns'=>array(
'idrichieste_ai',
array(
'name'=>'order_by_stato',
'value'=>'$data->statiRichiestes->idStatiPerLabel->nome_stati'
),
array(
'name'=>'order_by_tipologia',
'value'=>'$data->tipologiaAttivitaLabel->nome_attivita'
),
'oggetto_chiamata',
'author',
array(
'name'=>'data_richiesta',
//*** formatField è una funzione che ho messo nel model 'AnagraficaRichieste'
'value'=>array('AnagraficaRichieste','formatField'),
)
)
)
);
…Thanks in advance!