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
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?
--~--~
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
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
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;
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+-\+
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' =>