Yii CGridView中分頁取得當前的頁數並跳轉到對應頁數

在index中:
  'value'=>'CHtml::link("更新",Yii::app()->request->hostInfo."/product/update?id=".$data->getId()."&page=".($this->grid->dataProvider->pagination->currentPage+1))',

在controller中:
  $this->createUrl('要跳轉的方法(一般是index)?對應的model_page='.$page)
轉載請註明出處,謝謝
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章