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 '<a href="/'.$this->params['slug'].'/'.$this->params
['controller'].'/'.$this->params['action'].'/'.$outurl.'">'.$title.'</
a>';

Not sure if this will extend well but seems to work for everything I
need so far...

On Dec 18, 5:54 pm, mwcbrent <[email protected]> wrote:
> 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<[email protected]> wrote:
>
> > Sorry!  The actual route code is:
>
> > Router::connect('/:slug/pages/*',array
> > ('controller'=>'pages','action'=>'index'));
>
> > On Dec 17, 1:30 pm,mwcbrent<[email protected]> 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/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:page2
>
> > > How do I do this without modifying the paginator.php code directly?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to