![]() |
Scaffolding - 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: Scaffolding (/showthread.php?tid=12839) |
Scaffolding - El Forum - 11-01-2008 [eluser]Praveen A P[/eluser] Entry in \application\config\routes.php Code: $route['scaffolding_trigger'] = "jango"; Code in Controller class Code: $this->load->scaffolding('ts_register_user'); Entry in \application\config\config.php Code: $config['base_url'] = "http://localhost/ts/"; but when i try "http://localhost/ts/jango" I get Quote:The requested URL /ts/jango was not found on this server. What might be incorrect? Scaffolding - El Forum - 11-01-2008 [eluser]henrihnr[/eluser] [quote author="Halwa Raj" date="1225620912"]Entry in \application\config\routes.php but when i try "http://localhost/ts/jango" I get Quote:The requested URL /ts/jango was not found on this server. [/quote] You should define controller name like in user guide Code: http://localhost/ts/controller_name/jango Scaffolding - El Forum - 11-01-2008 [eluser]RunningBlind[/eluser] If you're getting a "not found" error, the problem isn't in the scaffolding itself; that error isn't generated by CI, but rather the server. The server is looking for a URL with that path, but failed to find it. Did you define the rewrite rules in your .htaccess to take out the "index.php" from the URL? Try http://localhost/ts/index.php/{controller_name}/jango to see if this is the case. |