Problem
I show a list of hotels via CListView and when a user clicks on the id number a fancybox (via widget) should pop up with a detailed view of the hotel.
I managed to get this function, BUT it only works in the first page of the pagination.
index.php view file:
<?php
$this->widget('application.extensions.fancybox.EFancyBox', array(
'target'=>'a[rel=example_group]',
'config'=>array(
'autoDimensions'=>false,
'width'=>'920',
'height'=>'auto',
'scrolling'=>'yes',
),
)
);
?>
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>_view.php view file:
<div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('hotel_id')); ?>:</b>
<?php echo CHtml::link(CHtml::encode($data->hotel_id), array('view', 'id'=>$data->hotel_id), array('rel'=>'example_group')); ?>
<br />
[.....]
What do I have to do to make this work?
Grrrrrrrreat thanks.

Help












