Hi everyone i've got probleme with the paginator helper when i use it
twice in the same view

my source is:

//////////////////////Controller

$this->paginate = array('Absence'=>array(
                                                                        'limit' 
=> 5,
                                                                        
'conditions' => array('Absence.user_id' => 11,
'Absence.etat' => $currentGroup-1),
                                                                        
'fields' => array('User.name', 'User.forename',
'Absence.date', 'Absence.absencetype_id' 'Absence.days',
'Absencetype.name',')),
                                                                'Recuperation' 
=> array(
                                                                        'limit' 
=> 2,
                                                                        
'conditions' => array('Recuperation.user_id' =>11,
'Recuperation.status' => 1),
                                                                        
'fields' => array('User.name', 'User.forename',
'Recuperation.date', ));


$this->set('absences',$this->paginate('Absence'));
$this->set('recuperations', $this->paginate('Recuperation'));

 ///////////////////////View

in the absence table i'm using the $absences variable and  in the
recup table i use the $recuperations variable

the probleme is when i click on the tables' headers. both of tables
being sort

if you have any solution, idea, suggestion please reply me.

thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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