Re: Routing and Pagination Issue

2008-12-19 Thread mwcbrent
Made the following changes to the paginator.php: instead of: return $this->link($title, $url, array_merge($options, array('escape' => $escape))); I wrote: $outurl = ''; foreach($url as $key => $val) { $outurl .= $key.':'.$val; } return ''.$title.''; Not sure if this will extend well bu

Re: Routing and Pagination Issue

2008-12-18 Thread mwcbrent
So the best idea would be to alter the Paginator class to suit my needs? Any ideas on which vars to alter? On Dec 17, 1:35 pm, mwcbrent wrote: > Sorry!  The actual route code is: > > Router::connect('/:slug/pages/*',array > ('controller'=>'pages','action'=>'index')); > > On Dec 17, 1:30 pm, mwc

Re: Routing and Pagination Issue

2008-12-17 Thread mwcbrent
Sorry! The actual route code is: Router::connect('/:slug/pages/*',array ('controller'=>'pages','action'=>'index')); On Dec 17, 1:30 pm, mwcbrent wrote: > I've found a handful of posts about this but no solutions that fit my > problem. > > In my routes.php I have: > > Router::connect('/:slug/pa

Re: Routing and Pagination Issue

2008-12-17 Thread mwcbrent
Sorry my actual Route looks like: Router::connect('/:slug/pages/*',array ('controller'=>'scenes','action'=>'index')); On Dec 17, 1:30 pm, mwcbrent wrote: > I've found a handful of posts about this but no solutions that fit my > problem. > > In my routes.php I have: > > Router::connect('/:slug/p

Routing and Pagination Issue

2008-12-17 Thread mwcbrent
I've found a handful of posts about this but no solutions that fit my problem. In my routes.php I have: Router::connect('/:slug/pages/index', array('controller' => 'pages', 'action' => 'index')); But when I use the Paginator it only gives me: /pages/index:page2 I'd like to get: /myslug/index