Sorry for the bad formatting..
Router::connect('/:user_name', array('controller' => 'users', 'action' =>
'view'),
array( 'pass' =>
array('user_name'), array('user_name' => '([A-Za-z0-9-_]+)' )
));
On Mon, Nov 17, 2008 at 7:05 PM, perumal <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am new to cake php, i need help on routing. My requirement is, the
> user profile view page URL should contain only the display name
> without the controller and action name.
>
> I want to change the url as mentioned below.
>
> http://www.mydomain.com/users/view/perumal
>
> to
>
> http://www.mydomain.com/perumal
>
> Thanks in advance
>
> Regards
> Perumal S
>
> >
>
--
Anupom Syam
http://syamantics.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---