Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to undefined function base_url()
#1

[eluser]ChristopherDosin[/eluser]
hey,

if i use
Code:
<?php echo base_url();?>
i get the error message
"Fatal error: Call to undefined function base_url() in blabla on line blabla"

Why? do if have to load something? what did i wrong?
#2

[eluser]tomdelonge[/eluser]
Maybe load the url helper:

Code:
<?php $this->load->helper('url');?>

Load it at the beginning of your controller or autoload it or something...
See if that helps. Otherwise, I'm not sure...
#3

[eluser]ChristopherDosin[/eluser]
yes thanks so much Smile
that was the problem.




Theme © iAndrew 2016 - Forum software by © MyBB