CodeIgniter Forums
Funny problem with scaffolding and URI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Funny problem with scaffolding and URI (/showthread.php?tid=2340)



Funny problem with scaffolding and URI - El Forum - 07-30-2007

[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."


Funny problem with scaffolding and URI - El Forum - 07-30-2007

[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";



Funny problem with scaffolding and URI - El Forum - 07-31-2007

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


Funny problem with scaffolding and URI - El Forum - 08-09-2007

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