heres my situation, I have a user dashboard with tabs in it:
- 1st tab shows user projects that are active
- 2nd tab shows user projects that are expired.
along with a bunch of other tabs.
The problem started when I tried to paginate Tab1 and Tab2. I have the relative question over here. This question has been answered by petrocket although it does not work entirely.
The problem with the paginated links and counter remains.
when I do
<?php pr($this->Paginator->params['paging']); ?>
I get the following result:
Array (
[UserProject] => Array
(
[page] => 1
[current] => 1
[count] => 8
[prevPage] =>
[nextPage] => 1
[pageCount] => 8
[order] => UserProject.id Desc
[limit] => 1
[options] => Array
(
)
[paramType] => named
)
[UserProject2] => Array
(
[page] => 1
[current] => 1
[count] => 5
[prevPage] =>
[nextPage] => 1
[pageCount] => 5
[order] => UserProject2.id Desc
[limit] => 1
[options] => Array
(
)
[paramType] => named
)
)
My question is: Is there any way by which we can manually change the value of paginator counter, next, previous, first and last values?
My assumption is that if I can specify these values manually from the above array it will work fine. Right now it just takes the value of array [UserProject]
correctly but not for array [UserProject2]
.