segment repeatation |
[eluser]Unknown[/eluser]
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?
[eluser]jedd[/eluser]
What is your $config['base_url'] set to in your config/config.php file? |
Welcome Guest, Not a member yet? Register Sign In |