Welcome Guest, Not a member yet? Register   Sign In
Funny problem with scaffolding and URI
#1

[eluser]walterbyrd[/eluser]
I am trying to follow along with the video tutorials. I am trying the blog tutorial now.

I have the scaffolding working - sort of. But, I'm having a funny problem with the URI.

When I click "Create New Record" I get a URI that looks like this:

Code:
http://localhost/ci/index.php/blog/scaffolding/index.php/blog/scaffolding/add

when it should look like this:

Code:
http://localhost/ci/index.php/blog/scaffolding/add

I can manually edit the URI, and it seems to let me insert records. But when I go to view the records, I get the message "No data exists for this table yet."
#2

[eluser]Michael Wales[/eluser]
Check your config.cfg - based on the URI's provided you should use the following:

Code:
$config['base_url'] = "http://localhost/ci/";
$config['index_page'] = "index.php";
#3

[eluser]walterbyrd[/eluser]
That seemed to do it. Thanx.
#4

[eluser]Unknown[/eluser]
Nice...I was having this same problem and this topic solved it. Thanks !




Theme © iAndrew 2016 - Forum software by © MyBB