OK, finally got it for real: Router::connect('/admin/', array('prefix'=>'admin','controller' => 'tips', 'action' => 'index'));
'prefix'=>'admin' was the key. On Oct 25, 10:26 am, hydra12 <[EMAIL PROTECTED]> wrote: > OK, I was wrong. I grabbed the latest (pre-beta), then I grabbed the > latest from svn. It still doesn't work. Any thoughts? > > On Oct 25, 10:06 am, hydra12 <[EMAIL PROTECTED]> wrote: > > > OK, found the answer > > here:http://groups.google.com/group/cake-php/browse_thread/thread/af135e46... > > > I should have spent more than 30 minutes looking for the answer . . . > > > On Oct 25, 9:43 am, hydra12 <[EMAIL PROTECTED]> wrote: > > > > I'm working on a new app, and I'm having trouble with routes and admin > > > routing. I have a route setup for my non-admin users: > > > > Router::connect('/', array('controller' => 'tips', 'action' => > > > 'add')); > > > > This works great. When a user connects to my site, they automatically > > > go to the /tips/add page. > > > > I want to do the same thing for admin routing - setup a route that > > > directs /admin/ to /admin/tips/index. > > > > I can't get it to work correctly. I tried this: > > > > Router::connect('/admin/', array('controller' => 'tips', 'action' => > > > 'admin_index')); > > > > admin_index is considered private, so I can't call this function. Any > > > ideas? > > > > Thanks! > > > hydra12 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---