It'known that with router:
----------------------------------
start---------------------------------------------------
Router::connectNamed(array('id'));
Router::connect('/something/*', array('controller' => 'users',
'action' => 'view'));
-----------------------------------
end--------------------------------------------------
I generate URL with:
-----------------------------------
start--------------------------------------------------
$myurl = Router::url(array('controller'=>'users', 'action'=>'view',
'id'=>100));
------------------------------------
end-------------------------------------------------
I can get:
/something/id:100
but what i want is : /something/100
i know i can use str_replace() to get it...but i want to know,can we
get the:/something/100
just from the Router::url()
thanks.~~
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---