problem with scaffolding |
[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!
[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"; After that, scaffolding should work for you ![]() |
Welcome Guest, Not a member yet? Register Sign In |