mint Posted July 21, 2012 Share Posted July 21, 2012 There is a for loop which iterates and displays some links, the number of links depends on a database value which lies in range of 100's, is there any way to paginate the links to display 10 links one at a time through pagination. Here is the code foreach ($records as $record): echo CHtml::link('Transaction ID #'.$record->RBT_Transaction_ID,array('mobdistinct','mobtrans'=>$record->RBT_Transaction_ID)); ?> <br> <?php endforeach; ?> Link to comment Share on other sites More sharing options...
Larry Posted July 23, 2012 Share Posted July 23, 2012 Yes, you can absolutely paginate the results. Look into the pagination features built into in Yii. Link to comment Share on other sites More sharing options...
Recommended Posts