What are my options开发者_C百科 when dealing with scaffolding in codeigniter - do people use scaffolding often? Or is there a better way of quickly generating code to be used in CRUD applications?
I've installed sparkplug: http://code.google.com/p/sparkplug/
And it seems pretty good - I mean it's basic but super fast to implement and the code is basic but neat and easy to understand.
However I noticed that there is not much discusson surrounding the benefits/drawbacks.
Can anyone advise a) a good library/ set of tools to use? b) How best to proceed in this situation
The idea of temporary scaffolding CRUD has always seemed a bit pointless to me for a couple reasons:
- It's not an end game solution, you're going to have to eventually implement proper (secure) CRUD operations for your application that are better tailored to your specific application's needs.
- If you just need quick and dirty DB input, Why not just use your DBMS? (phpMyAdmin, etc...)
To mitigate the time spent on repetitive application operations, I actually create a basic CRUD model so that I can have a good starting point to build the basic database interaction. That way you will actually be progressing towards your applications completion.
Scaffolding only ever existed to save you having to crack open Navicat, phpMyAdmin, MySQL Query Builder, etc. But this day in age, if you dont know how to work a MySQL client then you probably shouldn't be be working on a bloody website so it's been removed.
The reason I prefer to use a "quick and dirty" CRUD generator is often we bring in several non-technical people to do data clean-up. If I can easily build this "throw-away" interface without having to do a lot of coding, it saves me a lot of time as well as I am not spending much time on coding "throw-away" pages. I don't really want to give non-technical people an Admin tool just to edit data.
精彩评论