Welcome Guest, Not a member yet? Register   Sign In
Scaffolding
#1

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB