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

[eluser]Matrices[/eluser]
Hey all,

I just installed code igniter on my server and I came across an error when building out my homepage. It seems that base_url() isn't defined. I've used CI before on other projects and didn't have this problem. Can anyone shed some light on the situation?
Code:
<?

class Blog extends Controller {

    function Blog()
    {
        parent::Controller();    
    }
    
    function index()
    {
        base_url();
    }
}

?>

creates: "Fatal error: Call to undefined function base_url() in /home/weirdmac/public_html/system/application/controllers/blog.php on line 12"


Messages In This Thread
base_url() error - by El Forum - 09-27-2008, 07:03 AM
base_url() error - by El Forum - 09-27-2008, 07:23 AM
base_url() error - by El Forum - 09-27-2008, 07:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB