Hmmm.  Actually I couldn't get this to work for me.  Perhaps, it's
because I'm on 1.2x.  Anyone else got a way they do this?  I'll dig in
the source a bit.

Thanks,
Wilson

On Jul 8, 7:17 am, Hellbot <[EMAIL PROTECTED]> wrote:
> Router::connect('/admin/', array(CAKE_ADMIN => true, 'controller' =>
> 'photos', 'action' => 'index'));
>
> 2007/7/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> > I need to route '/admin' to '/admin/photos/index' in my routes table.
> > Is this possible? I'm using CakePHP admin routes.
>
> >         Router::connect('/admin', array('controller' => 'photos', 'action' 
> > =>
> > 'admin_index'));
>
> > For me, it generates the 'Trying to access private method in class'
> > error.  I've read the manual and searched the group to find the answer
> > but didn't locate it.
>
> > I also tried:
>
> > Router::connect('/admin', array('controller' => 'admin/photos',
> > 'action' => 'index'));
>
> > Among others.
>
> > Anyone done this?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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