Hello everyone!
I´m getting a problem and i haven´t found any topic that could help me.
In my controller i have:
$contagemArtigos = Processo::model()->valoresContagemArtigosAgregadosCliente($_GET['id'], $id_cliente);
$contagemArray = $contagemArtigos->getData();
$preco_total_estimado = $contagemArray[0]['preco_total_estimado'];
$preco_total_final = $contagemArray[0]['preco_total_final'];
$poupanca = $contagemArray[0]['poupanca'];
$artigos = $contagemArray[0]['artigos'];
$quantidade_total_artigos = $contagemArray[0]['quantidade_total_artigos'];
and in my view:
$this->widget('zii.widgets.jui.CJuiTabs', array(
'tabs' => array(
'Resumo'=>array('id'=>'resumo',
'content'=>$this->renderPartial('_resumoProcessoCliente',
array('preco_total_estimado' => $preco_total_estimado,
'preco_total_final' => $preco_total_final,
'poupanca' => $poupanca,
'Cabimentado'=>$Cabimentado,
'artigos' => $artigos,
'quantidade_total_artigos' => $quantidade_total_artigos,
), TRUE )),
'Artigos agregados'=>$this->renderPartial('_listaArtigosAgregados', array('artigosAgregados'=>$artigosAgregados), TRUE ),
'Lista total de artigos'=>$this->renderPartial('_listaTotalArtigos', array('totalArtigos'=>$totalArtigos), TRUE ),
),
));
the first tab renders a normal table and the next two tabs render diferent CGridViews.
If I navigate throught all tabs and don´t change the page of each one of the CGridviews it all works perfectly but if i change the page number the I get an offset error reporting back to the controller line
$preco_total_estimado = $contagemArray[0]['preco_total_estimado'];
Thank You very much!