Create a route for it: Router::connect( '/manage/experiences/', array('controller' => 'experiences', 'action' => 'index', 'manage' =>true) );
$html->link('Experience', array('controller' => 'experiences', 'action' => 'index', 'manage' =>true)); On Mon, Oct 12, 2009 at 3:05 PM, Dave Maharaj :: WidePixels.com <d...@widepixels.com> wrote: > > But when I hardcode it (not so cake-way) like this it works fine. > > <li><?php echo $html->link('Experience', '/manage/experiences/'); ?></li> > > I just thought it could be done like a standard array(controller action) > > -----Original Message----- > From: Miles J [mailto:mileswjohn...@gmail.com] > Sent: October-12-09 4:31 PM > To: CakePHP > Subject: Re: Defining URL > > > Well if you are using a prefix or a plugin, index is required to determine > the correct route, else it will fail. > > On Oct 12, 11:28 am, "Dave Maharaj :: WidePixels.com" > <d...@widepixels.com> wrote: >> How can you drop index off the url? >> >> <li><?php echo $html->link('Experience', array('controller' => >> 'experiences', 'action' => null, 'manage' =>true));?></li> >> >> Tried with null, '', or removing action completely but still shows >> manage/experiences/index >> >> Thanks >> >> Dave > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---