Re: Routes with slugs, pagination problem

2012-06-29 Thread lowpass
Router::connect( '/:slug', array( 'controller' = 'categories', 'action' = 'view' ), array( 'slug' = '[-a-z0-9]+', 'pass' = array('slug') ) ); Router::connect( '/:slug/:page',

Routes with slugs, pagination problem

2012-06-28 Thread Ovidiu Marinoiu
Hello, I have created a route which looks like this Router::connect('/:slug', array('controller' = 'categories', 'action' = 'view'), array('pass' = array('slug'))); Until here, everything works okey, visiting the link http://example.com/animals-and-pets, works perfect. On this page I have a