• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Here we go again, Anchor function doubles up url on call

#1
[eluser]edziffel[/eluser]
Finally got my anchor tag to call a method/function in the controller.
?php echo anchor('/drawback/hoeboy', 'click here');?>

Unfortunately on click it generates the following URL:

http://localhost/drawback.com/localhost/drawback/index.php/drawback/hoeboy

which ain't working, don't care where yer from. Note the right url which works fine

localhost/drawback/index.php/drawback/hoeboy, is appended to the current root url http://localhost/drawback.com.

Checked Url and anchor in users guide. Didn't see a cure.

A config setting? Played with a few the Url, routes etc. Didn't work.

Code:
function hoeboy() {
                echo "oh not again";
                }

It's not the code for hoeboy but included it so that it was clear that isn't it.

Ideas?

Thanks


Messages In This Thread
Here we go again, Anchor function doubles up url on call - by El Forum - 07-25-2011, 01:53 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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