Yep that works perfect.

Thanks man.

Dave 

-----Original Message-----
From: brian [mailto:[email protected]] 
Sent: October-12-09 5:28 PM
To: [email protected]
Subject: Re: Defining URL


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
<[email protected]> 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:[email protected]]
> 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"
> <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to