07-25-2011, 01:53 PM
[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.
It's not the code for hoeboy but included it so that it was clear that isn't it.
Ideas?
Thanks
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