CodeIgniter Forums
Scaffolding and controllers in subdirs - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Scaffolding and controllers in subdirs (/showthread.php?tid=37386)



Scaffolding and controllers in subdirs - El Forum - 01-07-2011

[eluser]Unknown[/eluser]
I'm new here so Hello Everyone.

I'm also new in CI and i have problem with scaffolding. If I put controller in default dir (application/controllers) scaffolding working fine:

localhost/my_page/test/scaffolding
localhost/my_page/test/scaffolding/add

But if i put controller in subdir, like this:

localhost/my_page/admin/test/scaffolding <- this working
localhost/my_page/admin/test/scaffolding/add <- this return 404

Thanks for possible help,

CI 1.7.3
PHP 5.3


Scaffolding and controllers in subdirs - El Forum - 01-07-2011

[eluser]Nick_MyShuitings[/eluser]
remember that scaffolding is just a little helper so you can play around quickly without having to build a full CRUD or use phpmyadmin... so its quite possible that its very limited in scope.

If I recall correctly its deprecated in 2.0


Scaffolding and controllers in subdirs - El Forum - 04-13-2011

[eluser]web-johnny[/eluser]
Yes this is true , scaffolding does not exist anymore in ci 2.0 , though if you like a quick CRUD for ci.1.7.3 you can use mine named as grocery CRUD. (it works even in sub folders). Click here to see it