You need to add the route like this:

Router::connect('/admin/', array('prefix' => 'admin', 'controller' =>
'articles', 'action' => 'index'));

Works fine for me

On Jan 30, 11:31 am, AJS <[EMAIL PROTECTED]> wrote:
> I've enabled admin routing in core.php
>         Configure::write('Routing.admin', 'admin');
>
> And this works for relevant controllers' actions, 
> eg:www.mysite.com/admin/articles
> works fine.
>
> But I can't seem to hook up the root admin path - ie mysite.com/admin
> - to anything. I'm trying to do that in routes.php, with a line such
> as:
>
>         Router::connect('/admin',
> array('controller'=>'articles','action'=>'admin_index'));
>
> The syntax here may be wrong, but nothing at all seems to work, I just
> get a 403 Forbidden error: You don't have permission to access /admin/
> on this server.
>
> Ideas?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to