A problem with current_url() - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: A problem with current_url() (/showthread.php?tid=20921) |
A problem with current_url() - El Forum - 07-25-2009 [eluser]VinceVe[/eluser] Hey guys, I'm new to CI and I really want to work with it. It's a nice framework and it's working fast. But now I've ran into a problem. I'm using a htaccess file for hiding the index.php segment in the url. But if I use current_url(); a function from the link helper the index.php is included. Do I need to substring the index.php or is there another function (or parameter) for this problem ? I've got it also with the anchor(); function and probably with the others also. Thanks in advance A problem with current_url() - El Forum - 07-25-2009 [eluser]Dam1an[/eluser] Hi, welcome to CI Most likely, you need to set index_page to a blank string in the config file A problem with current_url() - El Forum - 07-26-2009 [eluser]VinceVe[/eluser] Thanks Damn1an, that was my problem! thank you very much A problem with current_url() - El Forum - 07-26-2009 [eluser]Derek Allard[/eluser] An hour after your post you get a response from one of the most active and respected community members... what a great way to be introduced to CI! Hope you'll stick around Vince, look forward to seeing you around the forums more. A problem with current_url() - El Forum - 07-27-2009 [eluser]VinceVe[/eluser] Thanks Derek, I'm fairly new to CI. But I think it's a great system to make beautiful applications. So I will stick to it |