Welcome Guest, Not a member yet? Register   Sign In
base_url() -> empty
#1

[eluser]sl3dg3hamm3r[/eluser]
Hey there

I'm just trying to do my first simple project with code-igniter. Well, with every framework, at the beginning there is more pain than joy, but I'm positive this gonna change soon.

Here my problem (code in controller):

Code:
$this->load->helper('url');
        echo "base-url: " . base_url();

and in the config-file, on line 14, I certainly defined the variable:
Code:
$config['base_URL'] = "http://127.0.0.1/xyz/";

But I don't get any url, it would only show 'base-url:' in the browser. What could that be?

Oh, and right another question: since I expect to use the url-helper almost everywhere, is there a load-routin which is called for every called controller? So I might need to write it only once...

Sincerely
Oliver


Messages In This Thread
base_url() -> empty - by El Forum - 07-31-2008, 02:24 PM
base_url() -> empty - by El Forum - 07-31-2008, 03:45 PM
base_url() -> empty - by El Forum - 08-01-2008, 12:16 AM
base_url() -> empty - by El Forum - 08-01-2008, 01:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB