Search code examples
phpcodeignitercrudscaffolding

Codeigniter 2 Scaffolding


What are my options 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


Solution

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