I have a list of categories that displays a list of items below it.
In this way:
routes:
Router::connect('/category/:slug', array('controller' => 'Product', 'action'=>'catview', 'slug'=> '[0-9a-zA-Z]+')); Router::connect('/category/:slug/:page', array('controller' => 'Product', 'action'=>'catview','slug'=> '[0-9a-zA-Z]+','page'=>'[0-9]+'));
and
when I do this on the results page, it just doesn't work:
<?php $slug = $this->params['slug']; $this->Paginator->options(array('url'=> array('controller' => 'Product', 'action'=>'catview','slug'=> $slug))); echo $this->Paginator->prev('<< Show me previous', array('class'=>'prev')) . $this->Paginator->next('Show me more >>', array('class'=>'next')); ?>
It does not change the results; it shows the same result as on page 1.
Any ideas I'm wrong about?
Karma source share