problem with scaffolding

#1
[eluser]Unknown[/eluser]
Hy!
I'm a beginer in codeigniter and I need some help.
I have a probleme after I complete in routes.php the secret word "scaffolding", put in constructor $this->load->scaffolding('table_name'), and a URL like http://localhost/index.php/welcome/scaffolding/ in my browser.
The database conection is fine.

The problem apear when I want to put a new record (the scaffolding feature recognise my table and generate me a page with "view record", "create new record")....and when I folow "create new record" menu, it tells me that: The requested URL /welcome/scaffolding/add was not found on this server.
Where did I get wrong?
After that I take a lock in the scaffolding folder and, the "add" folder (or file) does not exist....and I believe that the adress mentioned above "http://example.com/welcome/scaffolding/add" is not corect. A "add.php" exist endeed but in "scaffolding/views/" folder. Thenks!

#2
[eluser]ariful[/eluser]
facing same problem

#3
[eluser]ariful[/eluser]
facing same problem please some one help us

#4
[eluser]Clowerweb[/eluser]
Go into system/application/config/config.php

Where it says:
Code:
$config['base_url']= "http://www.example.com";

Change to:
Code:
$config['base_url']= "http://localhost/CodeIgniter";
Or the path to your website.

After that, scaffolding should work for you Wink


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.