Hi there, Looking through various bits of information on reverse routing, particularly the manual and this great article:
http://debuggable.com/posts/new-router-goodies:480f4dd6-4d40-4405-908d-4cd7cbdd56cb I think I'm more or less on top of things, but have one oddity. I have a route like this: Router::connect( '/admin/:site_id/:site_name/users/edit/:id', array('controller' => 'users', 'action' => 'edit', 'admin' => true), array('pass' => array('id', 'site_id', 'site_name'))); that routes links like this to the edit action of my user controller: /admin/1/My_New_Site/users/edit/1 When I try to create links like this, however: echo $html->link('CakePHP Rocks', array( 'site_id' => 1, 'site_name' => Inflector::slug('My New Site'), 'controller' => 'users', 'action' => 'edit', )); I get a link like this: /admin/user/edit/site_id:1/site_name:My_New_Site which doesn't work. What am I doing wrong? I have worked around this using Router:url in a static function, like in Feliix's article (above). Thanks, Toby --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---