Welcome Guest, Not a member yet? Register   Sign In
A problem with current_url()
#1

[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
#2

[eluser]Dam1an[/eluser]
Hi, welcome to CI
Most likely, you need to set index_page to a blank string in the config file
#3

[eluser]VinceVe[/eluser]
Thanks Damn1an, that was my problem! thank you very much Smile
#4

[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! Smile

Hope you'll stick around Vince, look forward to seeing you around the forums more.
#5

[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 Smile




Theme © iAndrew 2016 - Forum software by © MyBB