CodeIgniter Forums
Can't Add items in scaffolding view - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Can't Add items in scaffolding view (/showthread.php?tid=13456)



Can't Add items in scaffolding view - El Forum - 11-23-2008

[eluser]featureBlend[/eluser]
Hi,

Firstly i am running the APACHE 5.0.6 server with PHP 5.2.6 and MYSQL 5 + LOCALLY. Secondly this is a really simple question. (i dont know which variable to set here, if there is one) I was watching the 2nd tutorial on creating a blog with CI, and when i got to creating a record WITHIN the entries table with scaffolding i wasn't directed to an ADD NEW RECORD.

I am sure i have enabled the scaffolding feature in my constructor and set the $route variable plus making sure i connect to the DB (thats all fine).

I did notice one thing, and im sure its the problem. When i hover over the Create New Record it gives me this path to the scaffolding feature http://your-site.com/index.php/scaffolding/add. I think it should be pointing to my local server @ "http://localhost" for it to work. Whats happening is its picking up www.yoursite.com and obviously there is no scaffolding feature there.

I even tried to open up the Scaffolding.php and changed the class Scaffolding $base_url to = "localhost". Perhaps i didnt use the right syntax here or am looking in the wrong place.

Can anyone help please?


Can't Add items in scaffolding view - El Forum - 11-23-2008

[eluser]featureBlend[/eluser]
Tongue - Thanks MasterNielsen - i do understand that, just thats its a great feature to show impress clients who want a database attached!!


Can't Add items in scaffolding view - El Forum - 11-24-2008

[eluser]bobbybaboon[/eluser]
I'm having the same issue, so it would be greatly appreciated if any one could offer a solution.


Can't Add items in scaffolding view - El Forum - 11-24-2008

[eluser]bobbybaboon[/eluser]
I solved it by going into the config.php file and changing the 'base_url'


Can't Add items in scaffolding view - El Forum - 11-25-2008

[eluser]featureBlend[/eluser]
Cheers Bobby, i was going into the scaffolding.php file and changing the base url their...


Can't Add items in scaffolding view - El Forum - 12-26-2008

[eluser]Unknown[/eluser]
Yes, Thanks Bobby Again.

I was having the same issue and was getting a bit frustrated to say the least. Just added the directory name for CodeIgniter to the base URL and bingo...there it was.

the base URL should look like

http://www.yoursite.com/CodeIgniter/ or whatever you may have named it.

One problem, One solution at a time.