[eluser]georgeoneill[/eluser]
Hi
I'm brand new to CI and having fun figuring it out. There's one major thing bothering me, I must be doing something wrong.
When I try to use the url helper functions (anchor() and redirect() to be specific), I get funny results. It seems to me that this is because they use site_url() instead of base_url().
I've used .htaccess to remove index.php from my urls, and I have the corresponding $config variable set to an empty string, as instructed.
Here's my example: if i'm on the page
localhost/example/default and I have the code
Code:
anchor('somepage', 'link')
I'm expecting to get sent to:
localhost/example/somepage when I click the link.
but instead i'm taken to:
localhost/example/default/localhost/example/somepage
I can easily work around this with native php, but I feel like I want to use the full capabilities of CodeIgniter whenever possible. Also I'm tempted to rewrite the functions using base_url instead of site_url but that seems too ham-handed.