Re: Routes Regex problem

2010-01-27 Thread ABCoder
Thanks Adnan visskiss wrote: > > > Good day to you all, > > I have tried to solve this and it's killing me. > > My site is working well, but I am trying to perfect the URL's to > optimize for search. > > The short question: > > Doe anybody know

Re: Routes Regex problem

2009-04-16 Thread visskiss
Well, I have stumbled upon something I didn't think of. By realizing that cake goes through routes in order, I simply forward the 'exceptional' routes to their proper place (controller/action) and then leave all the rest '/*' to the appropriate single controller What say all? --~--~

Routes Regex problem

2009-04-16 Thread visskiss
Good day to you all, I have tried to solve this and it's killing me. My site is working well, but I am trying to perfect the URL's to optimize for search. The short question: Doe anybody know how to get the routes regex working so that all queries EXCEPT those in a given list

Re: routes regex

2009-03-06 Thread Alexandru Ciobanu
Alfredo Quiroga-Villamil wrote: > Btw, I think I might have missed a digit in that regex: > > /\w+-\w+-\w+-\d+-\+-\d+-\w+-\w+/ > > > Thanks Alfredo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group

Re: routes regex

2009-03-05 Thread Alfredo Quiroga-Villamil
Btw, I think I might have missed a digit in that regex: /\w+-\w+-\w+-\d+-\+-\d+-\w+-\w+/ Regards, Alfredo On Thu, Mar 5, 2009 at 4:18 PM, Alfredo Quiroga-Villamil wrote: > The code below is using perl; but take a look at the regex to match > the given string. I didn't test this a whole lot;

Re: routes regex

2009-03-05 Thread Alfredo Quiroga-Villamil
The code below is using perl; but take a look at the regex to match the given string. I didn't test this a whole lot; so double check it and run a few tests to see if it does what you want. use strict; use warnings; my $string = 'asus-eee-pc-900-+-2-gb-ram'; if ( $string =~ /\w+-\w+-\w+-\d+-\+

routes regex

2009-03-05 Thread Alexandru Ciobanu
Hi guys, I'm having some trouble with custom routes. I'm trying to match /asus-eee-pc-900-+-2-gb-ram/1521 My line for this in routes.php is: Router::connect('/product-details/:slug/:id', array('controller' => 'store', 'action' => 'view_product', 'id', 'slug'), array('id' => '[0-9]+','slug' =>