Hi all,
I have the following view:
<div class="view">
<?php
Yii::app()->session['from']=$from;
$this->widget('CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_viewGuest',
));
?>
</div>
The _viewGuest is the following:
<?php echo CHtml::encode($data->name); ?>
<?php echo CHtml::encode($data->statusText); ?>
<?php echo CHtml::encode($data->email); ?>
<?php echo CHtml::ajaxLink('Resend',CController::createUrl('resend',array('id'=>$data->id))
array('type'=>'POST','success'=>'function(msg) { window.alert(msg); }')
); ?>
The problem I have is that when the "Resend" action is called from an item in the first page, it works OK. But on following pages it allways sends ids from the first page.
Any help will be highly appreciated.