Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] base_url from controller?
#6

[eluser]wakey[/eluser]
I have the URL helper loaded in the autoload.php - I think this is a case of me being a bit thick!

This is the line that I am echoing from the controller to my view -

Code:
echo "<li><href = '$url"."admin/$row->admission'><strong>$row->surname</strong>&nbsp;$row->first_name</a></li>";

(Changed so that I can add it to the forum - didn't realise it blocked urls)

So basically I would need the base_url(); to replace the $url variable but I can't seem to get it in the correct syntax!


Messages In This Thread
[SOLVED] base_url from controller? - by El Forum - 03-02-2010, 09:42 AM
[SOLVED] base_url from controller? - by El Forum - 03-02-2010, 10:07 AM
[SOLVED] base_url from controller? - by El Forum - 03-02-2010, 10:17 AM
[SOLVED] base_url from controller? - by El Forum - 03-03-2010, 03:55 AM
[SOLVED] base_url from controller? - by El Forum - 03-03-2010, 04:02 AM
[SOLVED] base_url from controller? - by El Forum - 03-03-2010, 04:15 AM
[SOLVED] base_url from controller? - by El Forum - 03-03-2010, 04:22 AM
[SOLVED] base_url from controller? - by El Forum - 03-03-2010, 04:32 AM
[SOLVED] base_url from controller? - by El Forum - 08-16-2010, 02:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB