I have in my Posts controller 3 functions each with a different pagination
set.
 
I am stuck on my search pagination... I run a query to get all the jobs i
need to paginate based on the search query. All fine and dandy..push all the
Post.id into an array then pass that to paginate.
 
So these are the pages(Post.id) being sent to paginate

$postQuery = 
Array
(
    [0] => 2d1e9c
    [1] => 28c9a2
    [2] => 8197d5
    [3] => 2a4370
    [4] => a78629
    [5] => 3fb952
    [6] => 97fd0f
    [7] => 66bfb4
    [8] => e9915c
    [9] => 139ea7
    [10] => cbe69d
    [11] => 87c28a
)
controller paginate
 
$data = $this->paginate('Post', array('Post.id' => $postQuery));
      $this->set('posts', $data);

Now the search index shows up with the pagination in place butwhen I click
next I get Undefined variable: paginator [APP/views/jobs/search.ctp, line 8]
Which is this line of code
<div class="prev"><?php echo $paginator->prev(__('previous', true), array(),
null, array('class'=>'disabled'));?></div>

Where did I go wrong?
 
Dave 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to