Route is overwriting routes of same controller

2015-12-28 Thread Sven Mäurer
Is it right that all other routes of the same controller are overwritten if I define the following? Router::connect( '/catalogs/:name', ['controller' => 'catalog_groups', 'action' => 'view'], ['name' => '[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*'] ); I am using CakePHP 2.7.* -- Like Us on

Re: Help with Cakephp 2.x pagination

2015-12-28 Thread Matthew Kaufman
Use the get neighbors function. On Mon, Dec 28, 2015 at 5:32 PM, Clement Crownrise < clementcrownr...@gmail.com> 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

Re: Help with Cakephp 2.x pagination

2015-12-28 Thread Clement Crownrise
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

Re: Help with Cakephp 2.x pagination

2015-12-28 Thread John Andersen
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