Hello all, I'm a Rails developer stuck in CakePHP land for a while so if this question may have an obvious answer I'm not aware of. Feel free to scold me as needed. :)
I'm trying to create a URL to a resource but Router::url doesn't produce correct URLs. As an example, if you have the following in routes.php: Router::mapResources( 'users' ); Then the a GET to the URL 'users/4962a0cd-5508-462b-9444-0b14fd383471' will correctly call the view action of the users controller. However, the following code in a view doesn't produce a URL in the right format: $html->link( $user['User']['id'], Array( 'controller' => 'users', 'action' => 'view', 'id' => $user['User']['id'] ) ) Instead you get 'users/view/4962a0ed-fba4-4085-93c7-0b14fd383471'. I was a little surprised to see this is mapped at all when using Router::mapResources. Can that also be avoided somehow? Cheers, Tobin Richard. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
