Monday, June 28, 2010

1.3 Routes Question

The migration guide says 1.3

 

Router::connect('/([0-9]+)-p-(.*)/', array('controller' => 'products', 'action' => 'show'));

 Is no longer good.

 

My 1.2.x app I have

 

Router::connect('/:user_slug/',array('controller' => 'profiles', 'action' => 'view'),array('user_slug' => '[-_A-Za-z0-9]+','pass' => array('user_slug')));

 

Which allowed site.com/myname to the user profile view

 

Is this no longer going to work in 1.3?

 

Dave

 

No comments: