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 [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
-~----------~----~----~----~------~----~------~--~---