Part of the EllisLab Network
   
 
Scaffolding Deprecated?
Posted: 21 January 2008 09:49 PM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1090
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.

 Signature 

peeker email (imap/pop) | site_migrate | OOCalendar | PhotoBox2 | word_limiter

Profile
 
 
Posted: 22 January 2008 06:38 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  136
Joined  12-02-2007
sophistry - 22 January 2008 02:49 AM

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 12:28 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2280
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 here.
MichaelWales.com | MichaelWales.info

Profile
 
 
Posted: 22 January 2008 04:36 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
RankRankRank
Total Posts:  677
Joined  07-05-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 05:03 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  709
Joined  06-07-2007

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

 Signature 

jtaby.com

Profile
 
 
Posted: 28 January 2008 03:08 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
RankRankRank
Total Posts:  429
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 04:05 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2280
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 here.
MichaelWales.com | MichaelWales.info

Profile
 
 
Posted: 28 January 2008 04:27 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  709
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 

jtaby.com

Profile
 
 
Posted: 28 January 2008 04:46 PM   [ Ignore ]   [ # 8 ]  
Research Assistant
RankRankRank
Total Posts:  429
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 04:50 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  378
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 

August 2011: I’m not an active codeigniter developer right now. Feel free to contact me, but I may not be able to solve your problem for you.

flickr | twitter | rockets

Profile
 
 
Posted: 28 January 2008 05:36 PM   [ Ignore ]   [ # 10 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  3097
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 10: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 11:01 AM   [ Ignore ]   [ # 12 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
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

Profile
MSG
 
 
Posted: 01 February 2008 11: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 11:35 AM   [ Ignore ]   [ # 14 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1090
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.

 Signature 

peeker email (imap/pop) | site_migrate | OOCalendar | PhotoBox2 | word_limiter

Profile
 
 
Posted: 16 February 2010 08:31 AM   [ Ignore ]   [ # 15 ]  
Grad Student
Avatar
Rank
Total Posts:  74
Joined  08-14-2007

What about this project?

A post from the autor here, he explains how it works. Very simple, it’s in portuguese but you can understand by the pictures and the code.

 Signature 

vrusso.com.br - CodeIgniter Study Blog & Game Development
vrusso.com.br - CodeIgniter Folder Icons for Leopard
Follow me @vicenterusso

Profile