ColdFusion Community

The online Coldfusion community website

Fernando Lopez çB^]\..

Model Glue Validation & Sample Application

Hi All.

Is there a place where I can find a full working sample of a MG application? I read the quick start guide but I really don't have too much use for a Pig Latin Translator.

I'm trying to put together an application, my first MG app actually and I'm struggling with the concept of validation and committing.

I'm also reading Ray Camden and Dan Wilson's series on MG but the validation part goes over my head. Not only I'm new to MG but to the whole OOP in Coldfusion.

I just want to see and play with code that's already out there so I can understand the concepts a little better.

Reply to This

Replies to This Discussion

Hi Fernando

I'd recommend you to read the following article series:

http://www.nodans.com/index.cfm/2007/1/19/So-you-want-to-create-a-M...
and
http://www.coldfusionjedi.com/index.cfm/2006/3/13/Building-your-fir...
(there should be links to the following parts)

I'm just working on my first Model Glue project myself so I'm not much of an expert but I think this 2 article series should get you a good starting point.

Good luck

Reply to This

Thanks Mathias
I'm already familiar with both series and I'm still trying to get a grip on creating objects out of thin air with coldspring. I don't even want to start looking into scaffolding because that's a sure headache for me right now.

I did find two things that look really promising into trying to understand the whole OOP and Model Glue.
  • First one Ray Martin http://roy.empiregn.com/blog he has a neat 35 minute video presentation on hoe to refactor a purely Spaghetti code page into components. He's preparing the stage to introduce Model Glue concepts after that. Refactoring-Inline-Coldfusion-Towards-MVC
  • Second one, from the Jedi himself. I found that he has a full application www.coldfusioncookbook.com running under MG and he has the code open out there for people to download and see how he did things. Exactly the kind of thing I was looking for. ModelGlue-Sample--Cookbook
  • I think I'm on a good way to learn this stuff, there are great resources out there is just a matter of digging for them.

    if somebody else has links to good MG tutorials or presentations that can help a noobie, please don't be shy and post back here.

    çB^]\..

Reply to This

Hi,

This is how I mastered Model-Glue and ColdSpring.

First I dowloaded both frameworks also Reactor and gone through tutorials comes with that - not fully clear and was very interested to see a sample useful application and there comes Rays model-glue series. I downloaded the PDF and followed the series thoroughly and completed the sample app. After that I felt very confident with MG and started my first app and during the development I also reviewed the reference comes with MG.

After successfully completing three MG apps, I was eager to learn ColdSpring and want to effectively use it in my coming MG apps. There comes NoDans series. It helped me a lot to use CS very nicely with MG (also please go through orginal CS docs if you have time) and now I use both very effectively in our current projects.

Reply to This

you may find some help at cfFrameworks.com

Reply to This

RSS

Latest Activity

Luke Kilpatrick and Michael Dinowitz are now friends 16 hours ago
Hal Helms and Michael Dinowitz are now friends 16 hours ago
Nathan Stanford and Michael Dinowitz are now friends 16 hours ago
Michael Casey Michael Casey joined ColdFusion Community. Leave a Comment for Michael Casey. 21 hours ago
John Blayter and Rob Brooks-Bilson are now friends 27 Aug
Danielle Borja Danielle Borja left a comment for Patrick Boyce 26 Aug
Danielle Borja Danielle Borja joined ColdFusion Community. Leave a Comment for Danielle Borja. 26 Aug
Brian Meloche Brian Meloche left a comment for Sidney Maestre 25 Aug
Sidney Maestre Sidney Maestre left a comment for Brian Meloche 25 Aug

Translate this page

© 2008   Created by Nick Tong

Report an Issue  |  Feedback  |  Privacy  |  Terms of Service