I too encountered this same issue, it turns out it needs an additional
parameter. Try this:
$Route->connect('/admin/', array('controller' => 'foo', 'action' =>
'index', 'admin' => 1));
On Jan 11, 12:52 pm, Greg Baker <[EMAIL PROTECTED]> wrote:
> I want to routewww.example.com/admintowww.example.com/admin/foo/index
>
> so I tried the following routes, none of which work..
>
> $Route->connect('/admin/', array('controller' => 'foo', 'action'
> => 'admin_index')) // gives me a Private Method in Controller error
> $Route->connect('/admin/', array('controller' => 'foo', 'action'
> => 'index')) //kinda works, but doesn't connect me to
> Foo::admin_index() but rather just Foo::index()
>
> Is it possible to do what I am looking for here?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---