Hi Brian Thanks, I'll give that a shot, it has been working fine until I came across this instance - but that line of code in routes has been carried around for a while so I've probably been relying on something that has been depreciated or where the API has changed... or maybe it should just never have worked !
Cheers On May 5, 4:13 pm, brian <bally.z...@gmail.com> wrote: > You have the regexp in the wrong place. Try something like this: > > Router::connect( > '/:whatever/*' > array( > 'controller' => 'nodes', > 'action' => 'view' > ), > array( > 'whatever' => '(?!admin|pages|users|photos)' > ) > ); > > Untested, of course. > > On Tue, May 5, 2009 at 10:04 AM, Flipflops <johnsv...@googlemail.com> wrote: > > > Hi > > > I'm trying to paginate a set of results but Cake isn't building the > > links properly, instead of the correct link the pagination helper is > > generating links that just output part of my routes config. > > > The pagination is working fine in some parts of my application so > > something like this is working fine where 'photos' is an actual > > controller and 'project_gallery' a method e.g. /photos/project_gallery/ > > 16/page:1#album-image-gallery > > > But I want the following to be routed to my 'nodes' controller / > > seascapes/summer-seascapes - instead of generating /seascapes/summer- > > seascapes/page:2 the generated url is: > > > /(?!admin|pages|users|photos)(./summer/summer-seascapes/page:1) > > This line is just spitting out a line from my routes.php file where > > there is a line that basically just catches urls and send them to the > > view action of my nodes controller: > > > Router::connect('(?!admin|pages|users|photos)(.*)', array('controller' > > => 'nodes', 'action' => 'view')); > > > In my view I am using $paginator->options(array('url' => $this- > >>passedArgs)); to try and set the url but that isn't working - I want > > to set the url myself and not have cake try and figure out what it is, > > which I guess is what isn't working - what I am doing wrong ? > > > Cheers > > > (I'm using 1.2.3.8166) > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---