Welcome Guest, Not a member yet? Register   Sign In
Can't Add items in scaffolding view
#1

[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?
#2

[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!!
#3

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

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB