Router::connect(
'/agents/:agent_slug',
array('controller' => 'agents', 'action' => 'profile'),
array(
'agent_slug' => '[-_A-Za-z]+',
'pass' => array('agent_slug')
)
);
You can adjust the regexp to suit the format of your slugs.
On Mon, Apr 13, 2009 at 12:58 PM, Dave Maharaj :: WidePixels.com
<[email protected]> wrote:
> I am trying to do something and not sure if it is possible.
>
> I want to change the URL from agents/profile/AGENTNAME
> to
> agents/AGENTNAME
>
> I just want to remove the PROFILE action from the name. The index function
> is not going to be needed for this controller.
>
> How can I go about this?
>
> Dave
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---