In all seriousness - I would love to see CI get rid of the dynamic scaffolding and include a script to generate the scaffolding files. This way you can get that administrative code very quickly while still being able to secure it.
And no - for those of you going to reply saying there are things that already do that - have you looked at the code those products generate? Atrocious.
yeah i agree that i do not like the code that is generally created by those scripts
i prefer to extend the controller and write libraries to do the scaffolding anyway
hope to release my code (probably a couple of months away) that I use for this as it is quite lean but feature rich
personally i have only ever tested the CI scaffolding once to see what it was like and it was ok but not really what i wanted so i have never used it, even in the early stages of a project to get things started
Michael, wait for the new version to come out and watch the videos before you judge
IMHO file generation is horrible, i (admittedly arrogantly) think my approach is much better..give me a week.
It’s not that it’s bad, it’s just rather lacklustre. I started MVC in RoR, so I guess I never knew differently, but scaffolding should be a way to get a database driven page up and running quickly. That is to say, some basic CRUD, forms and display pages. It gives you something to build off of. The current scaffolding implementation is phpmyadmin without the extra features.
Just been having a quick look at the docs for 1.6. I noticed that scaffolding is listed as being deprecated, but that the user guide still explains it.
Is there something I’m missing? Is there a new alternative to scaffolding?
This was a tough decision, and there was considerable internal debate, but at the end of the day we just weren’t happy with how scaffolding was implemented. We felt it didn’t live up to the quality of the rest of CodeIgniter, and until we can have something in there that does, we just didn’t want to ship with it. We were careful not to break any currently existing functionality, and scaffolding will stick around for some time, but the decision was made to move it out.
I’d love to see this get replaced by a more robust solution - and I fully intend to support any other solution that comes up. For what its worth, scaffolding while appearing sexy on first glance, adds nothing to the end result of an application, but maintaining it opened up a host of other issues for us.
To be honest, I’ve never used the scaffolding features, but I was thinking that it might be quite good if there was some kind of automatic admin generation tools like in symfony to gives us a head start in creating administration sections.
Not that I ever used that in symfony either, but from what I understand, it’s very good.
while i used scaffolding a little bit when i first started with CI i don’t use it anymore (but it is a comfortable thing for newbies). agreed - scaffolding is like a mini-phpmyadmin.
i’d love to see efforts go toward an official CI ORM approach. i think that would greatly simplify complex database CI applications.
code generation… meh. IMHO, if you are writing code that writes code then you should probably re-think your code architecture.