As Matthew wrote, use the Neighbor function. See the CakePHP book in this page: http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#find-neighbors
Enjoy, John On Tuesday, 29 December 2015 00:54:37 UTC+2, Clement Crownrise wrote: > > Thanks for your response, but please what is the neighbour function? > > Can you please paste the sytax here. > > Thanks > > > On Monday, December 28, 2015 at 11:35:36 PM UTC+1, Matthew Kaufman wrote: >> >> Use the get neighbors function. >> >> On Mon, Dec 28, 2015 at 5:32 PM, Clement Crownrise <[email protected] >> > wrote: >> >>> Hello everyone, below is the first page of my list page, The first >>> attachment.. >>> >>> On clicking on any of the data on the first page, it will open up and >>> show like the second attachment. >>> >>> Now the problem is, I want to add a "Next " and "Previous" button to the >>> second attachment, so that I will not need to go to the first page(first >>> attachment ) in order to access the next or previous record. >>> >>> HOW CAN I ACHIEVE THIS? >>> >>> -- >>> Like Us on FaceBook https://www.facebook.com/CakePHP >>> Find us on Twitter http://twitter.com/CakePHP >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "CakePHP" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/cake-php. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
