Hi, I don't success to make param optional :
I try this : Router::connectNamed(array('optional', 'slug')); Router::connect( "/:optional/product/:slug/*", array( 'controller' => 'products', 'action' => 'view', 'optional' => null, // make it optional in theory ), array( "slug" => '[a-z1-9_]+', "action" => 'view', ) ); $url = Array ( ['admin'] => null, ['plugin'] => null, ['controller'] => 'products', ['action'] => 'view', ['slug'] => 'test' ); Router:url(url ); result : /products/view/slug:test Expected : /product/test I missed something ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---