Re: Linking to non-admin action from admin-action

2008-10-10 Thread MikeB
Thank you all for your responses. I appreciate the help. On Oct 10, 3:21 pm, mark_story <[EMAIL PROTECTED]> wrote: > Matthew, > > If you'd like open an RFC ticket about this subject, the router was > rebuilt in 1.2 from the ground up. If there is enough community > support to change it so you mus

Re: Linking to non-admin action from admin-action

2008-10-10 Thread mark_story
Matthew, If you'd like open an RFC ticket about this subject, the router was rebuilt in 1.2 from the ground up. If there is enough community support to change it so you must specify the use of a prefix at all times how the prefixes are handled can be changed in a future version. -Mark On Oct 10

Re: Linking to non-admin action from admin-action

2008-10-10 Thread Mathew
$html->link('View User',array('admin'=>false,'controller'=>'users','action'=>'view','id' => $user['Users']['id'])); The prefix string needs a boolean value. If your prefix had been "chicken_add" then you would pass "chicken"=>false. I dislike Cake's implementation of the Router defaulting to the

Re: Linking to non-admin action from admin-action

2008-10-09 Thread Kappa
In order to redirect to an admin action, just put the key 'admin'=>true into the array of redirection. On Oct 9, 6:15 pm, Fran Iglesias <[EMAIL PROTECTED]> wrote: > Hi, > > El 09/10/2008, a las 18:11, Sam Sherlock escribió: > > > I think you have to add prefix => false to the array 2nd param   >

Re: Linking to non-admin action from admin-action

2008-10-09 Thread Fran Iglesias
Hi, El 09/10/2008, a las 18:11, Sam Sherlock escribió: > I think you have to add prefix => false to the array 2nd param > passed to link - but it might be admin => false (I thnk its the > former allowing the admin.routing to be changed eg members or ewoks) A complete post by AD7six http:/

Re: Linking to non-admin action from admin-action

2008-10-09 Thread Sam Sherlock
I think you have to add prefix => false to the array 2nd param passed to link - but it might be admin => false (I thnk its the former allowing the admin.routing to be changed eg members or ewoks) 2008/10/9 MikeB <[EMAIL PROTECTED]> > > I have a users controller with 2 actions, view() and admin_ad

Linking to non-admin action from admin-action

2008-10-09 Thread MikeB
I have a users controller with 2 actions, view() and admin_add(). I've tried to create a link in the admin_add view that points the user to view(), however it keeps /admin/ in the url it generates. I'm using the link method in the Html helper and I don't understand how to prevent this. Here is so