segment repeatation

I've made a anchor in my view file like

<?php echo anchor('upload', 'Upload Another File!'); ?>

where upload is my controller and index is my function which is default. when i hover my mouse over this particular link or click on, it's display on status bar or in address bar like this

http://localhost/index.php/upload/index.php/upload Wrong

But it should be like this

http://localhost/index.php/upload/ Right

Suggest me where do i make changes?

[eluser]Nick Husher[/eluser]
Seems like it's printing out a relative link rather than an absolute one. Perhaps adding a leading slash to the first parameter of anchor would fix it?

What is your $config['base_url'] set to in your config/config.php file?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.