Welcome Guest, Not a member yet? Register   Sign In
Scaffolding error
#1

[eluser]Unknown[/eluser]
Hey, I am new to Code Igniter and I have been following the video tutorials you have.

I got to the bit on the blog video where you use the scaffolding command, for some reason after I do that, go to http://localhost/CodeIgniter/index.php/blog/scaffold/ and then press Add Record it takes me to example.com/index.php/blog/scaffold/add I can get to my local one by just adding /add to it but then when I add a new entry and it takes me all the way back to example.com

Does anyone have any idea why on earth this is happening? And if they do can they please give me a solution to fix it?

Thankyou.
#2

[eluser]Mike Ryan[/eluser]
Hi,

Look in system/application/config/config.php, and look for "$config['base_url']". It should be set to:
Code:
$config['base_url']    = "http://localhost/";




Theme © iAndrew 2016 - Forum software by © MyBB