Will give that a go.
So easily over looked when I see it there now.
Thanks
D
-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Robert P
Sent: November-01-09 12:17 PM
To: CakePHP
Subject: Re: Routing Question
Well, if you already have something set up like
function edit($id = null) {
...
}
You can simply wrap the method. This is PHP after all.
function manage_edit($id = null) {
$this->edit($id);
}
And if you also want to render the "edit" view:
function manage_edit($id = null) {
$this->edit($id);
$this->render('edit');
}
On Nov 1, 7:30 am, "Dave" <make.cake.b...@gmail.com> wrote:
> I have 2 routes defined for different groups. manage_ and editor_
>
> Now I have a few functions that either group can access so i could
> easily just change the action name to edit rather than manage_edit and
> editor_edit
>
> but how can i set it up so manage_edit and editor_edit both end up at
> edit but the user will see manage/edit or editor/edit
>
> Thanks
>
> Dave
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment