Part of the EllisLab Network
   
1 of 2
1
Quick Scaffolding Question
Posted: 19 July 2008 12:01 AM   [ Ignore ]  
Summer Student
Total Posts:  24
Joined  05-11-2008

Hello - I have used scaffolding to get something setup for a site fairly quickly. Don’t worry - I’m not leaving it this way.

But, what I was wondering is - is there someway for scaffolding to recognize drop down fields, checkboxes, etc. from the database?  Or is there a plugin that help you do this at all?

I have changed the scaffolding view to (while it’s looping through) change the appropriate field to a yes/no drop down for example. However, it is not saving the value when I save it.

Any help would be much appreciated!

Thanks!

Profile
 
 
Posted: 19 July 2008 01:32 AM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1070
Joined  07-27-2006

For one, scaffolding is what it is. You could extend it if you wanted, but you would have to make changes throughout, not just to front-end view files. Second, scaffolding is deprecated, since 1.6, I believe, so don’t expect it to be developed much further.

 Signature 

Check out the Template Library

Profile
 
 
Posted: 19 July 2008 01:37 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  24
Joined  05-11-2008

are they doing anything to replace scaffolding at all? Or are they just abandoning it altogether?

Profile
 
 
Posted: 19 July 2008 03:08 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Avatar
Total Posts:  5
Joined  07-16-2008

From my opinion, Scaffolding is intend to be a simply *helper* for developer to quick look/edit into database.

For more advanced control, considering the full-blown phpMyAdmin.

Try not to use Scaffolding always, since can course security flaw if you forgot to remove it on your production server.

mmm…

Profile
 
 
Posted: 19 July 2008 11:56 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  24
Joined  05-11-2008

I guess what I was really looking for is something similar to “baking” an application like CakePHP does. Or what Akelos does.

And, if Code Igniter does not have this feature, then I was wondering if there would be an easy way to extend the Scaffolding real quick? Don’t worry about security. This is an in-house application. And, we are going to be implementing security all over the place once we have this part done. So, I have that covered.

Could anyone provide me a quick example for either solution above?

Thanks!

Profile
 
 
Posted: 19 July 2008 01:25 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  395
Joined  08-03-2006

Take a look at CodeExtinguisher or BackendPro, they provide help when creating an admin interface.

 Signature 

IgnitedRecord: A very customizable and easy to use ORM library

MPTtree: A model to handle trees in a database.

YAYParser - Yet Another YAML Parser

Profile
 
 
Posted: 19 July 2008 01:47 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  24
Joined  05-11-2008

Neither one of those was what I was looking for. I like them and think they are great. However, I really like the “look and feel” of the default scaffolding in CI.

Is there any plugins of CI that does scaffolding that is easy and quick to implement?

Thanks!

Profile
 
 
Posted: 20 July 2008 09:11 PM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  6
Joined  05-12-2008

This is exactly what I am needing as well. Could someone please reply to this post because neither CodeExtinguisher or BackendPro is really what I need either.

Just like swhitlow I’m looking for something that looks like the default Scaffolding in CI. Could someone please give us some direction here?

-Thanks alot, I appreciate it!

Profile
 
 
Posted: 20 July 2008 11:21 PM   [ Ignore ]   [ # 8 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1070
Joined  07-27-2006
Could someone please give us some direction here?

Sometimes, when you want to have it your way, you’ve got to spend the time developing it (or order from Burger King). If CI is not “magic” enough for you, then it’s not what you’re looking for. Sounds like Cake has the exact feature you’re looking for (with a cutesy metaphor and all!). And if all you need is the look and feel, well, that shouldn’t take longer to reproduce than an afternoon with any other magic framework’s scaffolding/baking feature.

Scaffolding doesn’t really fit in with EllisLab/CodeIgniter’s philosophy, which is why I believe it was scrapped.

 Signature 

Check out the Template Library

Profile
 
 
Posted: 21 July 2008 12:21 AM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  24
Joined  05-11-2008

Not to offend you here Colin - But, CI is the team that put the so called “magic” in there to begin with. So, apparently you’re telling me they are bad designers and developers and don’t think things through? I would hope not.

No, I like CI for everything it offers. I look at scaffolding as a tool. Not a crutch. Sometimes developers can get a little too high and mighty and think more of themselves to the point of re-usable code is for degenerates. When in fact, the whole idea behind a framework is re-usable code! Scaffolding included.

There is absolutely nothing wrong with creating a quick way to start a development project. Yes, Cake has that feature. But, they are clear on their website as well that it is a quick way to get something going for prototyping (which was what I was needing to do real quick) and not for your actual project. Which, again, I completely understand.

I would email you on this but I would imagine you only stick to the local postal office. Since email would probably be a little too much “magic” for ya.  smile

Please don’t take offense to this. I am not flaming at all. I just wanted to explain my side of the story with your analogies that you put together so well.

Well, I’m off to go get a whopper!  wink

p.s. just a quick footnote - thank you Colin for responding to this post. You did help clear things up as far as the availability of the features that CI has. And just for the record - I think CI rocks and I love it! I would just like to see some additional features thrown in here and there, that’s all.

Profile
 
 
Posted: 21 July 2008 01:49 AM   [ Ignore ]   [ # 10 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1070
Joined  07-27-2006
swhitlow - 21 July 2008 12:21 AM
Not to offend you here Colin - But, CI is the team that put the so called “magic” in there to begin with. So, apparently you’re telling me they are bad designers and developers and don’t think things through? I would hope not.

I would agree to your latter point about them not thinking things through, but certainly not to the former about them being bad designers and developers. Hell no! I can’t speak for them, but their decision to scrap it and the fact that it really never got touched in major releases leads to conclude that scaffolding was something they threw in (not at all shoddily, mind you) before releasing CodeIgniter in order to market the framework a little better.

All I really aimed to do is explain that what you’re are seeking, you probably won’t find here now, or in the future.

I would email you on this but I would imagine you only stick to the local postal office. Since email would probably be a little too much “magic” for ya.

Okay, so the little emoticon indicates you were being facetious, but this is still way out of context Hopefully we’re on the same page now though.

 Signature 

Check out the Template Library

Profile
 
 
Posted: 21 July 2008 01:55 AM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  24
Joined  05-11-2008

We are on the same page. Also, I definitely want to clear this up - I was not saying that they didn’t know what they were doing. I was saying the exact opposite of that. They knew exactly what they were doing in building a great framework (scaffolding included). I just wish they would consider implementing it again.

Perhaps one of the core developers could chime in on this thread? It seems I keep seeing other threads like this pop up from time to time. I really would like to hear from the developers and see what they think…

Colin - have to apologize for the last post. I just read it back and it did seem a little “too” smart alecky (if thats a word) or facetious. I did not want it to come across that way. I was really just trying to throw some comedy in there and be light hearted about it. I guess it’s just hard to show inflections in your voice when you are typing…. anyway, thanks again for the help.

Profile
 
 
Posted: 21 July 2008 02:13 AM   [ Ignore ]   [ # 12 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1070
Joined  07-27-2006
I was not saying that they didn’t know what they were doing

I know. You were considering I had said it. So, I was just clarifying.

I don’t think the developers really need to weigh in on this. I mean, it concerns a feature they have deprecated, and they certainly should have no interest in defending my assertions. They have bigger fish to fry. (How many food allusions are there in this thread!?)

 Signature 

Check out the Template Library

Profile
 
 
Posted: 21 July 2008 04:00 AM   [ Ignore ]   [ # 13 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1819
Joined  07-30-2007

Not an official EllisLab response - my personal opinions:

Scaffolding was useless. All it did was replicate the existing functionality of phpMyAdmin or whatever other database management program you used, and it did it poorly. The other apps out there are infinitely better. No reason to keep a pointless piece of code in there.

Now - in the future w/ EE2 - ExpressionEngine itself will essentially be your scaffolding.

 Signature 

MichaelWales.com

Profile
 
 
Posted: 21 July 2008 04:06 AM   [ Ignore ]   [ # 14 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1070
Joined  07-27-2006

Well said, Michael. I’m glad to have this official response from EllisLab. (just kidding…)

Now - in the future w/ EE2 - ExpressionEngine itself will essentially be your scaffolding.

Well, yeah, if your data is based on EE’s core content object model. How else could it (or did you slip your tongue and let something out! Some sort of ORM feature the EE will be keen to… keen enough to scaffold well)? smile

 Signature 

Check out the Template Library

Profile
 
 
Posted: 21 July 2008 05:07 AM   [ Ignore ]   [ # 15 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1819
Joined  07-30-2007

No, I didn’t let anything slip - I really have no knowledge of it. But, after working with EE it is amazingly robust. There is no “EE Core Content Object” model - you can make it do whatever you want.

 Signature 

MichaelWales.com

Profile
 
 
   
1 of 2
1
 
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: 62419 Total Logged-in Users: 40
Total Topics: 76662 Total Anonymous Users: 2
Total Replies: 414139 Total Guests: 483
Total Posts: 490801    
Members ( View Memberlist )