If you're not doing any advanced routing then this should work:
<?php echo $html->link('Go', '/users/index'); ?>
On 23 May, 15:21, Abhishek <[email protected]> wrote:
> Hi,
> When i use this to generate the <a> link
> $html->link('Go',array('controller'=>'users','action'=>'index'));
>
> The link generated by the above statement doesnt contain .. the action
> as index ..
>
> I know /controller/ and /controller/index is the same thing ..
>
> I need it for some other reason .. is there any way i can force the
> helper to show index also in the link ..
>
> Abhishek
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---