Welcome Guest, Not a member yet? Register   Sign In
base_url is not available
#1

[eluser]nasir031[/eluser]
The problem that I'm facing is, echo site_url()/ base_url is not accessible in my index.php even though I've auto loaded $autoload['helper'] = array('url');. what is the problem here... I'm unable to get it.
Please Help I'll be thankful to you people
#2

[eluser]Bart v B[/eluser]
Some code would be more helpfull to see what the problem is causing.
#3

[eluser]marcogmonteiro[/eluser]
should be base_url() and not just base_url I think...
#4

[eluser]danmontgomery[/eluser]
index.php is the very first code executed by CI, the loader hasn't happened yet, so base_url()/site_url() aren't going to be available.
#5

[eluser]marcogmonteiro[/eluser]
@noctrum lol when @nasir031 said index.php I assumed he was talking about the default controller or something like that. Didn't even occurred to me that option lol




Theme © iAndrew 2016 - Forum software by © MyBB