Get Current Page

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.

Dear Friend

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

It should be actually.




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



Regards

thanks