Yii Framework Forum: Get Current Page - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Get Current Page Rate Topic: -----

#1 User is offline   Sujoy Bhowmick 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 27-December 12

Posted 29 January 2013 - 12:04 PM

hi

I am using cpagination and try to get the current page number like $pages->currentPage in view page but it is showing page =1 thougn i am in page 2.
0

#2 User is offline   seenivasan 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 620
  • Joined: 17-June 12
  • Location:Chennai,TamilNadu,India.

Posted 29 January 2013 - 12:14 PM

Dear Friend

It returns the zero-based index of the current page.

It should be actually.

$cuurentPage=>$pages->currentPage+1,


Regards
0

#3 User is offline   Sujoy Bhowmick 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 27-December 12

Posted 29 January 2013 - 12:34 PM

View Postseenivasan, on 29 January 2013 - 12:14 PM, said:

Dear Friend

It returns the zero-based index of the current page.

It should be actually.

$cuurentPage=>$pages->currentPage+1,


Regards

thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users