Part of the EllisLab Network
   
 
Scaffolding Deprecated?
Posted: 21 January 2008 08:49 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  795
Joined  08-06-2006

Scaffolding is listed in the changelog as “deprecated” in version 1.6

http://dev.ellislab.com/svn/CodeIgniter/trunk/user_guide/changelog.html

wow. that’s big news.

Profile
 
 
Posted: 22 January 2008 05:38 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Avatar
Total Posts:  28
Joined  12-02-2007
sophistry - 21 January 2008 08:49 PM

Scaffolding is listed in the changelog as “deprecated” in version 1.6

http://dev.ellislab.com/svn/CodeIgniter/trunk/user_guide/changelog.html

wow. that’s big news.

But scaffolding code and user guide page still in there.
Is “deprecated” true?

Profile
 
 
Posted: 22 January 2008 11:28 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1934
Joined  07-30-2007

One can only hope…

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.

 Signature 

Follow me on Twitter
MichaelWales.com

Profile
 
 
Posted: 22 January 2008 03:36 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
RankRankRank
Total Posts:  443
Joined  07-04-2007

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

Profile
 
 
Posted: 26 January 2008 04:03 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  686
Joined  06-07-2007

CodeExtinguisher doesn’t generate any files..it’s all done on the fly.

 Signature 

CodeExtinguisher
Download: codex2_rc14.2.zip - 219 KiloBytes of Gloriousness!
Demo: Public preview - login with preview:preview
Temporary Docs: PBWiki

Profile
 
 
Posted: 28 January 2008 02:08 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
RankRankRank
Total Posts:  444
Joined  05-21-2007

This *could* be an idea to see if someone have something community can use to help in the process of building general crud.

Maybe with community assistance and suggestion, our mass Dereck devoted team could think about a real solution.

maybe i’m wrong smile

 Signature 

-> None official irc channel [ irc.freenode.net #codeigniter ]

Profile
 
 
Posted: 28 January 2008 03:05 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1934
Joined  07-30-2007

CodeExtinguisher doesn’t generate any files..it’s all done on the fly.

Which is generally a bad thing. How am I to add custom functionality, my own security features, a new form field?

Scaffolding file generation is what we need.

 Signature 

Follow me on Twitter
MichaelWales.com

Profile
 
 
Posted: 28 January 2008 03:27 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  686
Joined  06-07-2007

Michael, wait for the new version to come out and watch the videos before you judge smile
IMHO file generation is horrible, i (admittedly arrogantly) think my approach is much better..give me a week.

 Signature 

CodeExtinguisher
Download: codex2_rc14.2.zip - 219 KiloBytes of Gloriousness!
Demo: Public preview - login with preview:preview
Temporary Docs: PBWiki

Profile
 
 
Posted: 28 January 2008 03:46 PM   [ Ignore ]   [ # 8 ]  
Research Assistant
RankRankRank
Total Posts:  444
Joined  05-21-2007

maybe tell us what you plan smile

 Signature 

-> None official irc channel [ irc.freenode.net #codeigniter ]

Profile
 
 
Posted: 28 January 2008 03:50 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  287
Joined  09-11-2006

Wait, what’s the downside to scaffolding? (I mean, other than it’s totally insecure, which the user guide makes very clear)

 Signature 

Slow and steady wins the race—but without loud and fast, it’s just a waste.

Profile
 
 
Posted: 28 January 2008 04:36 PM   [ Ignore ]   [ # 10 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2048
Joined  01-07-2008

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.

 Signature 
Profile
MSG
 
 
Posted: 01 February 2008 09:49 AM   [ Ignore ]   [ # 11 ]  
Grad Student
Rank
Total Posts:  64
Joined  01-03-2008

Hi all…

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?

Any help would be gratefully appreciated.

Cheers…

Matt

 Signature 

Web Design Stoke-on-Trent

Profile
 
 
Posted: 01 February 2008 10:01 AM   [ Ignore ]   [ # 12 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6762
Joined  03-23-2006

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.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 01 February 2008 10:04 AM   [ Ignore ]   [ # 13 ]  
Grad Student
Rank
Total Posts:  64
Joined  01-03-2008

Thanks, Derek.

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.

Cheers…

Matt

 Signature 

Web Design Stoke-on-Trent

Profile
 
 
Posted: 01 February 2008 10:35 AM   [ Ignore ]   [ # 14 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  795
Joined  08-06-2006

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.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66380 Total Logged-in Users: 34
Total Topics: 84694 Total Anonymous Users: 4
Total Replies: 454557 Total Guests: 217
Total Posts: 539251    
Members ( View Memberlist )