How to have a trailing slash at the end of the URL?? |
[eluser]jigen7[/eluser]
i want to have a trailing slash at the end of my url... Code: <?=anchor('main/show_all/','Show All');?> but still at the end of the url for example where the link is it only shows http://goldmine/jigen/jigsdb/index.php/main/show_all the one i want to do is http://goldmine/jigen/jigsdb/index.php/main/show_all/ so anyone have an idea?how to do this?thx
[eluser]ninjawebstudio[/eluser]
Code: <?=anchor('main/show_all/','Show All').'/';?>
[eluser]Lone[/eluser]
I would just be inclined to do it the 'normal' way - its barely much more code.. Code: <a href="<?=site_url(); ?>main/show_all/">Show All</a> You can do it the following way but I am guessing it will still remove the '/' Code: <a href="<?=site_url('main/show_all/'); ?>">Show All</a>
[eluser]tonanbarbarian[/eluser]
here is a novel approach, untested tho why not set the url suffix to / In the config file Code: $config['url_suffix'] = '/';
|
Welcome Guest, Not a member yet? Register Sign In |